Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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
Hakob's user avatar
  • 359
5 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 ...
Paul Rey's user avatar
  • 233
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 ...
Razvan Toader's user avatar
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 ...
cmhobbs's user avatar
  • 141
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" { ...
Yasen's user avatar
  • 682
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 ...
Wesley Rolnick's user avatar
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 ...
erk's user avatar
  • 131
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 ...
saddique's user avatar
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" }, ...
Levi's user avatar
  • 1,054
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 ...
Eduardo Baitello's user avatar
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 ...
rohatgisanat's user avatar
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 ...
Eduardo Baitello's user avatar
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, ...
Tensibai's user avatar
  • 11.4k
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 ...
Roderick Bant's user avatar
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....
Easwar AB's user avatar
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 ...
Magus's user avatar
  • 425
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 ...
Kristian Kanchev's user avatar
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 ...
rohatgisanat's user avatar
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
Samit's user avatar
  • 1,011
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
rohatgisanat's user avatar
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 ...
Tin Pham's user avatar
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 ...
Jonas's user avatar
  • 1,025
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 ...
fourslashw's user avatar
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 ...
Adrian Lopez's user avatar
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 '...
cnu's user avatar
  • 184
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://...
030's user avatar
  • 13.2k
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 ...
Daniel's user avatar
  • 211
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 ...
Abdennour TOUMI's user avatar
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 ...
BMitch's user avatar
  • 3,310
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 ...
Caledonia91's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible