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
12
votes
1 answer

Kubernetes v1.24.3 upgrade broke ingress-nginx

After upgrading our AKS kubernetes cluster to from v1.23.8 to v1.24.3 our ingress stopped working properly. No errors logged in events and the ingress-nginx pod does not report any errors on the console. Everything looks fine from within the…
sevenam
  • 411
  • 1
  • 11
12
votes
2 answers

How to rewrite url to backend while preserving browser url in nginx ingress?

I'm trying to rewrite the path to the service while preserving the browser url with nginx ingress on kubernetes. What I need is this: http://example.com/path => http://service http://example.com/path/bar =>…
Natan
  • 223
  • 1
  • 3
  • 9
7
votes
1 answer

400 Error with nginx-ingress to Kubernetes Dashboard

I have an ingress that connects to Kubernetes Dashboard, but I'm getting a 400 error when trying to access it. --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: kubernetes-dashboard namespace: kubernetes-dashboard …
cclloyd
  • 593
  • 2
  • 14
  • 29
5
votes
1 answer

k8s nginx ingress returns randomly 502 error on load

we are using an nginx (1.15.8.1) as ingress controller on our k8s cluster (v.1.17), managed by rancher (2.5.7). This worked pretty fine so far, but now we set up a custom API pod that can be externally accessed via ingress. Now, doing some load…
michafn
  • 71
  • 1
  • 4
4
votes
1 answer

Ensuring at least one ingress-nginx per kubernetes node

I'm trying to write an autoscaling configuration for ingress-nginx, deployed via helm chart. my goals are: 3 minimum replicas (because I have 3 nodes minimum) ensure only one nginx per node, but: be elastic, if autoscale says we need 4 nginx allow…
John Smith
  • 278
  • 1
  • 3
  • 10
4
votes
2 answers

Configure external IP redirect inside the Nginx Ingress controller

Question I would like to know how to configure the Nginx Ingress controller to redirect to a URL when calling the external IP address. Ingress controller yaml apiVersion: v1 kind: Service metadata: labels: helm.sh/chart: ingress-nginx-3.4.1 …
ZPascal
  • 143
  • 1
  • 1
  • 7
3
votes
1 answer

Forward real requestor IP in K3S NGINX ingress

I've set up a K3S Kubernetes Environment in my private Home-Lab on Raspberry PIs in order to teach myself some Kubernetes (Noob-Alert), using NGINX as Ingress Controller and I'm kind of stuck at passing the real IP of requests to the target Pods, in…
Brolantor
  • 31
  • 3
3
votes
1 answer

Malicious requests from private network (Kubernetes)

Recently I'm having many malicious requests to my nginx-ingress pod but I don't understand how's possible they're from a private network. Some examples: 10.114.0.3 - - [11/Oct/2021:09:07:09 +0000] "GET…
Darko Romanov
  • 135
  • 1
  • 2
  • 10
3
votes
2 answers

How to solve error 503 in Kubernetes NGINX Ingress

I'm trying to access Kubernetes Dashboard using NGINX INGRESS but for some reason I'm getting a 503 error. I'm running Kubernetes locally in my macbook with docker desktop. First thing I did was apply/install NGINX INGRESS CONTROLLER kubectl apply…
Carlos Sosa
  • 133
  • 1
  • 3
3
votes
1 answer

Nginx Ingress Rewrite Rule

I have a spring microservice running on k8s having 2 API URL's. First is /api/actuator for health check - running on port 9010 Second is /api for all other api calls - running on port 9000 I have created ClusterIP service to expose them on…
Vibhor Jain
  • 31
  • 1
  • 2
3
votes
1 answer

GCP - Loadbalancer pricing when using nginx ingress controller

How to calculate the pricing for GCP loadbalancers when using nginx ingress controller? Right now I have 1 Ingress host and a single rule for prod website. But I want to launch another for internal services both gitlab, jenkins. Is the cost…
3
votes
1 answer

Kubernetes: How to force kube-proxy to listen on localhost only

In my configuration, very basic one (Only calico network, no apps yet) I have nginx-ingress running as NodePort - binding on port 30080. This port should be accessible only from localhost, but k8s opened this port for everyone, and since it's…
Lisek
  • 309
  • 2
  • 7
  • 15
2
votes
1 answer

Expose Kubernetes cluster behind a pfSense

I installed a Kubernetes cluster on a Bare-metal sever. This server contains a Proxmox hypervisor, I have the following virtual machines a pfSense (192.168.9.254) two masters for the Kubernetes cluster (192.168.9.11, 192.168.9.12) two nodes for the…
sylflo
  • 21
  • 2
2
votes
0 answers

Access of K8s service within WSL2 + Docker Desktop from Linux machine over HTTPS

I've setup an authentication service in a Kubernetes cluster which lives in a Docker Desktop + WSL2 environment on a Windows 11 Pro machine. It can be reached e.g. via CURL & PostMan requests from the same Windows machine (outside that WSL2…
2
votes
2 answers

How to implement caching of HTTP responses in Kubernetes?

How can I cache HTTP responses from my services in Kubernetes? I have a simple web service in my cluster and am wondering how I could cache static assets (static html, images, fonts, etc.) beyond relying on client caches. My setup is very simple: …
nfelger
  • 121
  • 1
  • 3
1
2 3 4 5 6 7