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.

77 questions
1
vote
0 answers

custom error pages for nginx ingress controller

I was trying to get nice error pages, when my kubernetes service is not working (replicas: 0). So I found the following…
floek
  • 11
  • 2
1
vote
0 answers

nginx-ingress 400 error with websockets

Trying to host an app, specifically Foundry VTT, on my k8s cluster. It connects fine, but websockets (any url starting with /socket.io/ are giving me a 400 error. Googling how to enable websocket support, it seems I just need to add the proxy…
cclloyd
  • 583
  • 1
  • 13
  • 24
1
vote
1 answer

How to block/allow a country in Nginx ingress

Hello is it possible to block or allow certain countries in Nginx Ingress (community). It seems possible on Nginx installed on servers (link) But I want to apply similarly to this on Nginx Ingress.
1
vote
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
  • 545
  • 3
  • 9
  • 20
1
vote
2 answers

502 error with nginx-ingress in Kubernetes to custom endpoint

I have an ingress that routes to a custom endpoint external to the kubernetes cluster. The service listens only on HTTPS on port 8006. apiVersion: v1 kind: Service metadata: name: pve spec: ports: - protocol: TCP port:…
cclloyd
  • 583
  • 1
  • 13
  • 24
1
vote
1 answer

Ingress controller not showing nginx access/error logs

I'm trying to troubleshoot a 404 message on my ingress. When I view logs using kubectl logs -n ingress-nginx ingress-nginx-controller-xxxxxx -f I don't see any output when making a request to the URL. Is there a specific setting that allows me to…
Ben Davis
  • 250
  • 1
  • 4
  • 16
1
vote
0 answers

Ingress not working with cloudflare proxy option

I have cloudflare on it added A record of haproxy loadbalancer, behind loadbalancer are worker nodes of kubernetes cluster and ingress controller. Ingress routing traffic good when proxy option on CloudFlare on A record is disable as soon I enable…
0
votes
2 answers

How do I redirect "old.foo.com/foo" to "new.foo.com/foo" with a NGINX K8S ingress, without breaking cert-manager?

In my K8S ingress config, I'm trying to redirect from (for example) old.mywebsite.com to new.mywebsite.com. I can do this with the nginx.ingress.kubernetes.io/permanent-redirect annotation, but unfortunately this causes a redirect directly to the…
Hubro
  • 1,098
  • 3
  • 16
  • 35
0
votes
1 answer

Fix the KubeletHasDiskPressure in Kubernetes on a very limited server

I have a question regarding our local Kubernetes installation (Kubelet version == 1.24.4). We're having a Kubernetes installation installed using Kubespray. I'm aware of a few related questions/answers in Stackoverflow regarding fixing the…
0
votes
0 answers

How to delete Kubernetes Deployment that are not used so often

We have limited amount of resources in our cluster, so we want to implement a service/feature to manage cleaning up Deployments that are not used recently. We use nginx ingress, and want to know if there is a way to get the request counter for each…
0
votes
0 answers

Ingress to Ingress?

I'm following these instructions https://kubernetes.github.io/ingress-nginx/examples/auth/basic/ to add basic auth to an NGINX Ingress. This is in EKS. I already have an ALB Ingress which does route to our Service. I had hoped I could insert an…
tvaughan
  • 101
0
votes
1 answer

Kubernetes dashboard ingress HTTP error 400

Installed Kubernetes dashboard with Helm helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard -f values.yaml --create-namespace -n kubernetes-dashboard ingress: enabled: true paths: - / hosts: -…
Rahul V Sharma
  • 141
  • 2
  • 7
0
votes
0 answers

Kubernetes Ingress auth-signin redirect to different port

For me the redirect is happening only to the host (ie metrics.staging.com) and I want to redirect to metrics.staging.com:9099 ? Does anyone know how to redirect it to a host:port? My ingress: nginx.ingress.kubernetes.io/auth-signin:…
Joe
  • 1
0
votes
0 answers

Nginx Ingress Controller - configure cookie stickiness and upstream hash by request

I am running nginx as an ingress controller for my Kubernetes cluster and I have a use case where I am using cookie affinity to persist the client to a specific pod for session purpose. I am using the following…
Virtuose
  • 537
  • 1
  • 6
  • 11
0
votes
2 answers

Nginx proxy large file download fails instantly sometimes

Problem Downloading a large file (400MB+) with "transfer-encoding: chunked" fails after about 3 seconds. Downloading smaller files works even though possible taking longer than 3 seconds. The connection is just aborted mid-transfer which results in…
Modobu
  • 1
  • 2