6
votes
Accepted
How can I expose Ingress service on 80 and 443 to the outer world
It's would be better if you will use ClusterIP type as a service than apply Ingress resource on it
https://kubernetes.io/docs/concepts/services-networking/ingress/#single-service-ingress
4
votes
Accepted
Kubernetes serve static content with ingress
You can't configure your Ingress to serve static data (from your host files for example) alone because the Ingress resource is just a way to configure a way of understanding for Kubernetes on how to ...
3
votes
Ingress vs Load Balancer
After talking with the support staff from the cloud provider, reading through the docs and looking at how other cloud providers do it, I believe that both of them are needed.
In order to have a simple ...
3
votes
Accepted
"The plain HTTP request was sent to HTTPS port" issue with nginx-ingress in rancher/k8s
I found a resolution to my issue. I deleted the installed nginx-ingress app (chart). Went back to the marketplace to reinstall it and when I was given the opportunity to edit my configuration, I ...
3
votes
Nginx ingress controller redirects the url to /login
It just works
Your configuration is correct.
Provided YAML file generates nginx config like this:
...
server {
listen 80;
server_name example.com;
...
location ~* "^/service/test" {
...
2
votes
Accepted
Does Kubernetes Ingress use NodePort?
For your first question:
When using a Kubernetes LoadBalancer or Ingress, is the normal
NodePort used as the underlying connection point?
Technically it depends on the cloud network for ...
2
votes
Kubernetes nginx ingress controller - one pr. environment?
I would suggest at least one for production and one for npe. The nginx-ingress helm chart appears to only support setting a scope to all namespaces or just one namespace (a frustrating limitation not ...
2
votes
Kubernets docker registry behind nginx-ingress
First of all 404 error is resource error in kubernetes. It means your container in the pod is not created by your first script. Even if it is created and you can see it then your labeling is wrong in ...
2
votes
How to add rules to Kubernetes NGINX Ingress controller from different yml definitions?
I was able to combine your two example files by first converting them to JSON.
foo.json
{
"apiVersion": "extensions/v1beta1",
"kind": "Ingress",
"metadata": {
"name": "nginx-ingress"
},
...
2
votes
Enable TLSv1 TLSv1.1 for specific Ingress with Nginx Ingress
The ConfigMap and Annotation configuration have different purposes.
As per nginx-configuration/configmap/#ssl-protocols:
Sets the SSL protocols to use. The default is: TLSv1.2 TLSv1.3
...
2
votes
Accepted
Enable ingress-nginx Prometheus monitoring without Helm
Your ServiceMonitor seems to be correct with the exception that you have defined no path under spec.endpoints.
You also need to define the port named prometheus under the ingress-nginx service or ...
2
votes
Redirect to a custom page on 503 error in Ingress
There is no built-in configuration/annotation to handle this.
Although, you can use the server-snippet annotation to create a custom configuration that intercepts the error 503, proxying the request ...
1
vote
redirect url/ to url/test using ingress
Add an annotation nginx.ingress.kubernetes.io/app-root: /test as per the documentation kubernetes.github.io/ingress-nginx/examples/rewrite/#app-root
Quoted from the doc and adapted to your exemple, ...
1
vote
kubernetes ingress config for jenkins says service doesn't exist
Try change the port number in ingress.yaml to 8080 as that is the port on which the jenkins-service service is available within the cluster. The NodePort is a port on the cluster nodes themselves ...
1
vote
How can I use rewrite-target on the root path with Azure Kubernetes Service?
I had the same issue when trying Microsofts tutorial. Adding host under the rules section worked for me.
Example:
spec:
ingressClassName: nginx
rules:
- host: {your_app}.northeurope.cloudapp....
1
vote
Ingress vs Load Balancer
A LoadBalancer is a cloud specific resource, you wouldn't have a LoadBalancer if you had kubernetes running on a raspberrypi, for example. Instead you would have to provision your own using something ...
1
vote
Accepted
Explaining ingress installation with HELM
You explained what each does pretty well! I strongly suggest reading the documentation, especially for the commands, don't rely on tutorials only.helm commands helm repo add => This is what it ...
1
vote
Accepted
How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?
Same TLS secret will not be mapped to two ingress at the same time within a namespace.It will map to the first deployed ingress. Create the same secret with a different name and map it to the other ...
1
vote
Accepted
Nginx Ingress Controller - error creating inClusterConfig
Set automountServiceAccountToken: true in your pod specification in both of the jobs and the deployment.
Ref: https://discuss.kubernetes.io/t/nginx-ingress-install-failure/5379/4
1
vote
ingrex-nginx in kubernetes with express node.js does not return req.currentUser
Try using this:- use-forwarded-headers
apiVersion: v1
kind: ConfigMap
data:
use-forwarded-headers: "true"
metadata:
name: nginx-configuration
namespace: default
1
vote
Nginx-Ingress Controller are compatible with Network Security Policy or not?
I don't think it is the compatibility, need to really see your configuration to be sure. But most likely, you block something wrongly. If you use the default network policy api networking.k8s.io/v1 ...
1
vote
Accepted
How do I implement user authentication and management in Kubernetes?
I'm trying to architect a micro-service application, that runs in Kubernetes. It consists of several RESTful APIs. I want a central point to implement authentication for these APIs.
This is a good ...
1
vote
Accepted
Disabling HTTP Basic auth for requests from specific ips in k8s ingress
The thing I was looking for was external-auth in ingress-nginx. I created a simple service with nodejs which took over all the basic-auth logic. Then I used an external link to this service in k8s ...
1
vote
Ingress ip returns HTTP error DNS_PROBE_FINISHED_NXDOMAIN
There are two main reasons for this issue to happen:
Your dns are not exposed.
Your code is redirecting to a https address (and since you are working in your local machine, most likely you don't have ...
1
vote
Accepted
Default StorageClass set up for Docker EE Kubernetes
Found out that there is no specific 'default' storageclass(SC) type for Docker EE or others, it depends on the requirement and specific to Kubernetes provider(s). I went ahead and created a sc with '...
1
vote
How to add rules to Kubernetes NGINX Ingress controller from different yml definitions?
Could I have these two different definitions which creates a single
Ingress with two rules (based on having the same name)?
Lets investigate whether that would be possible.
According to
https://...
1
vote
Increase Kubernetes Nginx Ingress limits for large images in Docker registry
I learned that it's not required to set the ingress class to nginx as I did in kubernetes.io/ingress.class: nginx. All annotations prefixed with nginx.ingress.kubernetes.io apply to the default ...
1
vote
Is there an equivilent of a Kubernetes ingress for Docker Compose?
jwilder/nginx-proxy image simulates that excatly.
Use VIRTUAL_HOST & VIRTUAL_PATH env vars in the backend containers.
example:
version: '3.4'
services:
ingress:
image: jwilder/nginx-proxy
...
1
vote
Is there an equivilent of a Kubernetes ingress for Docker Compose?
Kubernetes ingress is implemented by changing the configuration of another container or the cloud load balancer to route traffic to the service port/ip. Docker by itself is fairly lightweight, only ...
1
vote
Multiple Ingress controllers in Kubernetes
I assume you've created your nginx ingress controller in it's own namespace? By default it's called ingress-nginx.
You can create your second Nginx Ingress controller in a seperate namespace so that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ingress × 44kubernetes × 38
nginx × 14
ingress-nginx × 5
amazon-web-services × 4
load-balance × 4
azure-kubernetes-service × 4
docker × 3
helm × 3
docker-registry × 3
ssl × 3
rancher × 3
microservices × 2
eks × 2
minikube × 2
istio × 2
kubernetes-helm × 2
google-kubernetes-engine × 2
docker-compose × 1
azure-devops × 1
google-cloud-platform × 1
prometheus × 1
node.js × 1
autoscaling × 1
images × 1