Questions tagged [nginx-ingress]

ingress-nginx is an NGINX controller built around the Kubernetes Ingress resource that uses ConfigMap to store the NGINX configuration.

2425 questions
0
votes
1 answer

How to rewrite a target only for a root path in ingress rules?

I need to rewrite the target only for the root path, but all others paths must work normally. I tried the following rules, but it doesn't redirect to /somePath. Instead, it goes to the normal root. apiVersion: networking.k8s.io/v1 kind:…
Roman
  • 51
  • 6
0
votes
1 answer

Ingress-Nginx Multi Cluster Service support

We have an Nginx ingress controller that we use as a Load Balancer. We have a control application that we use to create accounts for clients and when our control application creates the deployment it also upserts a service and an ingress. The…
0
votes
2 answers

Kubernetes Ingress Exact not prioritized over Prefix

In Kubernetes we need a new service to handle the root path, but but still a catch everything else on our current frontend. Current frontend Ingress apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: current-frontend labels: app:…
IQn
  • 133
  • 1
  • 4
  • 11
0
votes
1 answer

"ERR_TOO_MANY_REDIRECTS" nginx-ingress controller does not overwrite X-Forwarded-Proto: http, X-Forwarded-Scheme: http

We are using an IAP, GCP L7 Loadbalancer with nginx-ingress controller (version 0.49.3). We deployed self-hosted GitLab and we are getting "ERR_TOO_MANY_REDIRECTS". After some intense days of trouble shooting we noticed that POST…
0
votes
0 answers

Nginx Ingress: failed health check for a load balancer in Amazon EKS

I have a Cluster in AWS EKS with two nodes (call as Node A and Node B). And I installed nginx ingress in Node A. Then I see problem when public all pods in Node B (Node B not has nginx) and get error 504. When check detail loabancer in aws and see…
0
votes
1 answer

Route request based on ssl_client_verify in Nginx ingress controller

Depending on the result of ssl_client_verify, I want to use a different upstream. So if $ssl_client_verify = SUCCESS route to yes-mtls-backend:80 K8s service, otherwise route to no-mtls-backend:80 K8s service. The following did not work: apiVersion:…
fardin
  • 1,399
  • 4
  • 16
  • 27
0
votes
1 answer

IngressNginx Kubernetes disable/remove finalizers

I install ingress in the standard way. Using the Helm Chart. https://kubernetes.github.io/ingress-nginx But I do not want my LoadBalancer to be automatically deleted when the controller is deleted. finalizers: -…
JDev
  • 2,157
  • 3
  • 31
  • 57
0
votes
1 answer

Can I deploy ingress.yaml file in another namespace and run my deploy.yaml file in AKS

I have created 2 namespaces which are "ingress-basic" and "wallarm-ingress" now I have applied the deploying file in "ingress-basic" namespace and I want to know whether I can have applied my ingress.yaml file in "wallarm-ingress" namespace and…
0
votes
1 answer

nginx-ingress wont listen on different port number

I am deploying an nginx ingress controller via helm3. I am using the following values.yaml (Which specifically says to use port 81), but after I deploy it The controller still says it is listening on port 80. Not sure what I am doing wrong. $ helm…
zerobit
  • 31
  • 3
0
votes
1 answer

Ingress Nginx inject subpath to root URI

I'm trying to do the following uri manipulation in the Ingress-Nginx controller (helm.sh/chart=ingress-nginx-4.2.0) If the URI is exactly /, pass https://example.com/ -to-> https://backend_server/devportal/ But if the URI matches this pattern…
MiddlewareManiac
  • 570
  • 4
  • 19
0
votes
1 answer

Which ports needed to be set for a k8s deployment?

I do not understand how to configure ports correctly for a k8s deployment. Assume there is a nextJS application which listens to port 3003 (default is 3000). I build the docker image: FROM node:16.14.0 RUN apk add dumb-init # ... EXPOSE…
user3142695
  • 15,844
  • 47
  • 176
  • 332
0
votes
1 answer

k8s - ingress-nginx - rewrite-target annotation causing 504

I've deployed a default nginx ingress controller v1.5.1 via helm (kubernetes.github.io/ingress-nginx v4.4.0) to my AKS cluster. Running kubernetes v1.24.6. I have created the following ingress to reach my app service/pod. The idea is to remove the…
tmaurst
  • 552
  • 3
  • 14
  • 34
0
votes
0 answers

How to filter resources by annotations using kubectl?

I would like to return all ingress resources that do not contain a specific annotation. Using the following command returns an error: kubectl get ingress --all-namespaces…
QThompson
  • 1,599
  • 3
  • 16
  • 40
0
votes
1 answer

Kubernetes Ingress: Expose only few paths in REST API

I have a Service which have the following paths (as example): /api/Private1 /api/Private2 /api/Private3 /api/Public1 /api/Public2 Is it possible to only expose /api/Public1 and /api/Public2? So far, the only thing that worked for me is below, but…
Water
  • 1,114
  • 1
  • 15
  • 31
0
votes
0 answers

Nginx -ingress load balancer not creating with name in aws console

apiVersion: v1 kind: Service metadata: name: ingress-nginx-controller namespace: ingress-nginx uid: 79e364fb-b049-439b-857b-b27ed71adcb7 resourceVersion: '19873446' creationTimestamp: '2022-11-30T11:57:43Z' labels: …
1 2 3
99
100