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.

119 questions
19
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
  • 293
14
votes
2 answers

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
  • 441
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
  • 623
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
  • 2
  • 4
4
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…
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…
4
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
  • 143
  • 1
  • 1
  • 3
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

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
  • 259
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
  • 145
  • 1
  • 2
  • 10
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…
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

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
  • 183
  • 3
  • 5
  • 11
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
votes
0 answers

Switch ingress controller to new static IP with zero downtime?

My AKS app uses a standard ingress-nginx ingress controller with a static IP, installed via Helm chart: myStaticIp=1.2.3.4 myNodeRg=MC_foobar_eastus helm upgrade --install ingress-nginx ingress-nginx \ --repo…
Max
  • 385
1
2 3 4 5 6 7 8