Questions tagged [nginx-ingress]

The NGINX Ingress Controller for Kubernetes is an alternative Kubernetes ingress controller that can be used instead of the default ingress controller.

From NGINX website:

The NGINX Ingress Controller for Kubernetes provides enterprise‑grade delivery services for Kubernetes applications, with benefits for users of both NGINX Open Source and NGINX Plus. With the NGINX Ingress Controller for Kubernetes, you get basic load balancing, SSL/TLS termination, support for URI rewrites, and upstream SSL/TLS encryption. NGINX Plus users additionally get session persistence for stateful applications and JSON Web Token (JWT) authentication for APIs.

97 questions
2
votes
0 answers

How can I use a plugin in ingress-nginx to wrap a request?

I'm trying to use the lua-circuit-breaker plugin with ingress-nginx in a Kubernetes cluster. I want to set up two upstream servers such that the first is "wrapped" with this circuit breaker, and it falls back to a different upstream endpoint in case…
2
votes
1 answer

Kubernetes ingress 502 bad gateway on DigitalOcean

I am trying to deploy a NestJS app with Kubernetes on DigitalOcean and I have followed this tutorial, but I am always getting a 502 Bad Gateway from the nginx-ingress-controller. That's my deployment.yaml --- apiVersion: v1 kind: Service metadata: …
fasenderos
  • 123
  • 1
  • 4
2
votes
1 answer

NGINX Ingress on Kubernetes doesn't use HTTPS

I am setting a Kubernetes cluster on bare metal. I used Kubeadm for the installation. To make my services accessible from outside the cluster, I installed an NGINX Ingress, using the following documentation : NGINX doc Because I don't want to…
Thomas
  • 21
  • 1
  • 3
2
votes
4 answers

HTTPS 308 permanent redirection k8s ingress nginx

I have created an EKS cluster following the examples from AWS EKS, I have deployed the nginx ingress controller on top from kubernetes/nginx, Created an ingress resource which points to back end k8s services, However, when I am trying to query via…
Cricket
  • 41
  • 1
  • 2
  • 3
2
votes
2 answers

Django + Gunicorn + Kubernetes: Website down few minutes on new deployment

I am having this issue with Django + Gunicorn + Kubernetes. When I deploy a new release to Kubernetes, 2 containers start up with my current image. Once Kubernetes registers them as ready, which they are since the logs show that gunicorn is…
2
votes
1 answer

Kubernetes Nginx ingress timeout for two requests only

In our k8s ingress configuration we set timeout to 10min and its applying to all requests. Is it possible to configure timeout only to two requests like /my-service/v1/processfile and /my-service/v1/cachewarmup. Currently our configuration is as…
Geo
  • 575
  • 3
  • 9
  • 23
2
votes
0 answers

ingress returns 502 / TLS backend communication issue

i am operating a k8s cluster with cert-managerto obtain letsencrypt certs. I just set up nifi (https://github.com/cetic/helm-nifi) within this cluster, where the workload exposes a TLS secured port which is abstracted by a respective service. i set…
michafn
  • 71
  • 1
  • 4
2
votes
1 answer

How to properly configure access to kubernetes dashboard behind nginx ingress

I'm trying to configure nginx ingress to access several services, like this: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-monit spec: rules: - host: grafana.localhost http: paths: - path: / …
bachr
  • 163
  • 1
  • 5
  • 11
1
vote
1 answer

How to debug why a Ingress Controller in MicroK8S is pointing to the wrong service?

I have built a little three-node Kubernetes cluster at home, for learning purposes. Each 16GB node runs Ubuntu Server and MicroK8S. I have set up a leader (arran) and two followers (nikka and yamazaki). root@arran:/home/me# microk8s kubectl get…
halfer
  • 161
  • 1
  • 5
  • 25
1
vote
0 answers

Is it possible to have multiple ingress paths under the same host that point to the same backend service

I'm trying to restrict access to certain paths on my service how can I accomplish this on kubernetes? I have a service that runs a basic API but it also runs an admin service. Is it possible to use multiple paths under the same host as an ingress…
1
vote
1 answer

nginx rewrite rules wildcards

I am trying to do the following nginx redirect /product/reports/v1/stores(/|$)(.*) to /stores(/|$)(.*) seems like it should be simple but I can not get it to work. My intention is to use the nginx.ingress.kubernetes.io/rewrite-target: annotation
Adam
  • 31
  • 1
  • 4
1
vote
0 answers

Disable CORS using kubernetes ingress

Is it possible to forcefully disable CORS using kubernetes nginx ingress when the application is allowing CORS? I have an application that I believe is sending Access-Control-Allow-Credentials:true header. I tried the following but its not…
Dushyant Bangal
  • 123
  • 1
  • 1
  • 9
1
vote
0 answers

Set up Kubernetes Ingress Nginx in AWS

set up a kubernetes cluster locally and make kubernetes-ingress-nginx works correctly. Now I would like to deploy it on AWS. I set up the kubernetes cluster using kubeadm and it's working correctly. The issue now is that I can't make the ingress…
Mael Fosso
  • 121
  • 2
1
vote
0 answers

Updating ingress-nginx helm chart for kubernetes 1.23.5

I am having lots of issues that seem to stem from upgrading my kubernetes cluster to the latest version (1.23.5). I initially had some issues with the cluster itself and the nodes but that seems to be fixed and the cluster seems to be healthy, at…
kirie
  • 111
  • 1
  • 3
1
vote
1 answer

VMWare Workstation and Windows 10: can't connect to a server hosted on VM

I have a private 2 nodes Kubernetes cluster configured on VMWare Workstation 15. I'm using MetalLB and Calico. Ingress service and ingress look like: xxx@c1-cp1:~/Desktop$ kubectl get svc -n ingress-controller-2 NAME …