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
1
vote
1 answer

Providing a flag to NGINX Ingress Controller that doesn't run as a Deployment

In general, my question about setting up a default certificate is answered here: Kubernetes ingress How to set default-ssl-certificate?. What I don't understand is this part: I'm supposed to add the flag…
AbreQueVoy
  • 175
  • 9
1
vote
0 answers

How to enable ipv6 for ingress-controller services when installing using Helm nginx-ingress chart?

I have a baremetal K8 cluster setup using Kubespray (Calico as CNI) and have dual stack enabled. I can see that all the pods that get deployed get both IPv4 and IPv6 addresses but when I try to install nginx-ingress controller using nginx helm chart…
mickey9
  • 11
  • 2
1
vote
1 answer

how to configure ingress controller in kubernetes cluster over bare metal system?

Is there any way to assign static IP to Kubernetes cluster, in which any user can able to access its application over static IP only. for an example, I have set up a cluster over 192.168.0.131 (master), 192.168.0.132(worker1) and…
1
vote
0 answers

Nginx rewrite and return interfere with different location block

I have the following configuration in nginx for redirecting in a certain scenario. location /prefix-someurl { if (condition) { return 301 $scheme://$host/xyz.html; } proxy_pass someValue; } and in another block there are some…
Syed Osama Maruf
  • 103
  • 2
  • 2
  • 9
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
  • 593
  • 2
  • 14
  • 29
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.
Tek Nath Acharya
  • 134
  • 1
  • 10
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
  • 593
  • 2
  • 14
  • 29
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
  • 280
  • 1
  • 6
  • 18
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
1 answer

Dealing with Flask routing paths when deployed behind URL prefix

I have single page application build using the python Flask framework. I'm using gunicorn as the web server and I have containerised it using docker. It is deployed on Azure Kubernetes Services (aks) with Nginx Ingress Controller. The setup My Flask…
gigio
  • 3
  • 1
0
votes
0 answers

nginx-ingress controller redirect with query parameter with a period in it

I have the following url I want to redirect to another hostname but also change the query parameters if possible. It's basically change a url for prometheus to work in grafana. So the prometheus url…
Mike
  • 22,310
  • 7
  • 56
  • 79
0
votes
0 answers

HTTP_X Forwarded For NGINX Ingress not working

I have a simple application running inside AKS. I'm trying to get the IP of the source user when accessing the application. I have created an ingress for the application. When I curl -I https://example-app.xyz I see the source IP in the logs of…
0
votes
0 answers

How can I know request waiting time in Nginx Ingress Controller?

We use Kubernetes with Nginx Ingress Controller to run our platform with various backend services. We also use New Relic (& Prometheus, Grafana) for our Observability dashboards & alerts. Nginx Ingress Controller is the entrypoint for all our…
0
votes
0 answers

Unable to install ingress controller on k8s ver1.24.13

I have upgraded the k8s from 1.23.4 to 1.24.13 and also migrated the CRI from docker to crio. I am deploying the ingress controller ver1.7 , pods are not coming up with error permission denied. Any suggestions how to fix this issue. NGINX Ingress…