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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

ingress-nginx helm chart upgrade failed 'could not get information about the resource ValidatingWebhookConfiguration'

I'm trying to upgrade my ingress-nginx helm chart from v4.8.3 to v4.8.4 with this command: helm upgrade \ --reuse-values \ --set controller.admissionWebhooks.patch.networkPolicy....
Martin Tovmassian's user avatar
0 votes
0 answers
85 views

is Cloud loadbalancer necessary?

I currently have a Kubernetes cluster in the cloud AKS, and I'm using nginx-ingress to load balance, define routing rules and manage how traffic gets to my services. I see that many people are using ...
youngtoken's user avatar
0 votes
0 answers
28 views

Escaping Japanese Language Redirect (Nginx)

I'd like to redirect a following redirect in Nginx and I think its due to the encoding it has. I have tried the below code and it doesn't work: The redirect is: From Test.com/hub/東京 To Test.com/home, ...
thecatcoder's user avatar
-1 votes
0 answers
18 views

Kubernetes + Nginx + Docker Desktop: Annotations not work

My problem is more simple. I want deploy my app on kubernates/docker. My problem is: I build my "Deployment". In this moment only one replica I build my clusterIP Service to expose my POD ...
Dr.Gonzo's user avatar
0 votes
1 answer
33 views

Understanding Kubernetes load balancing with ingress controller using self-hosted load balancer

I'm looking to better understand load balancing concepts in a "self-hosted" Kubernetes environment. cluster setup architecture image I have an external load balancer, let's label it LB. This ...
Ryan's user avatar
  • 1
0 votes
0 answers
83 views

Redirect sub-paths to different destinations in kubernetes nginx ingress

am trying to redirect traffic from an older version of my site to the newer version of the site. Although, I have these 2 specific requirements. I need: old.mysite.com/ to be redirected to new.mysite....
Anuruddha Lanka Liyanarachchi's user avatar
0 votes
1 answer
141 views

ngnix - how to use conditional if with proxy_set_header and rewrite

Following is my ngnix template which is working fine: enterapiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"...
user2710603's user avatar
0 votes
0 answers
44 views

routing in kubernetes... nginx proxy-pass, but with named ports

I have an application running in a cluster, where each user gets handed off to an individual pod. All user-pods run on the same port, so a nice simple nginx server can handle that. If we assume that ...
CodeGorilla's user avatar
0 votes
0 answers
47 views

How to route requests with the same query parameter to the same backend servers?

I have three Nginx reverse proxy servers with ModSecurity installed acting as WAF servers which route requests to my Kubernetes Cluster ingress-nginx, Istio service mesh is installed on the Kubernetes ...
Sinux's user avatar
  • 85
1 vote
1 answer
246 views

gRPC bidirectional streaming client sometimes close rpc unexpected EOF to server behind Nginx Ingress

I am faced with the issue that a gRPC Client in Bidirectional streaming call to the server behind an AWS NLB, nginx ingress controller sometimes throws er "close rpc error: code = Internal desc = ...
Tristan's user avatar
  • 21
0 votes
0 answers
52 views

Nginx uses an upstream name instead of an IP

I have an Nginx server. I have configured upstream. In the test environment under tests everything works well. But I just implemented this in production where there are more requests. I started ...
Виталий Федоренко's user avatar
0 votes
0 answers
108 views

how kubernetes listens ports

I'm trying to resolve the local issues of the applicaiton deployed on local microk8s where I have the nginx ingress installed There are two ingresses: demo.localdev.me localhost These things are ...
Pavel Husakouski's user avatar
0 votes
0 answers
215 views

Kubernetes dashboard not working with Nginx Ingress Controller, error "Client sent http request over HTTPS Server"

BEFORE I BEGIN: I have seen all the posts related to this before posting my question here but none of the suggested solutions work for me - not even adding thee following annotation helped: nginx....
neo3matrix's user avatar
0 votes
0 answers
149 views

How to use Ingress to access kubernetes-dashboard on Minikube?

I can access kubernetes-dashboard by getting its URL using minikube dashboard --url. However, using this approach a different portname is used every time I restart the Minikube cluster. Therefore I ...
Joysn's user avatar
  • 101
1 vote
1 answer
44 views

How to safely update an existing Kubernetes server without original configurations

I was handed a Kubernetes cluster with no config files, and was not setup with helm. The author said they just created everything from the cmd line. It is a small/new cluster for a single API server ...
Supernat's user avatar
0 votes
1 answer
182 views

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) ...
gigio's user avatar
  • 3
0 votes
0 answers
321 views

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's user avatar
  • 22.4k
0 votes
0 answers
478 views

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://...
Container-Man's user avatar
0 votes
0 answers
131 views

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. ...
Raman Kishore's user avatar
-2 votes
1 answer
126 views

Getting issue with nginx ingress controller

I'm getting issue with nginx ingress Error: invalid virtual server or virtual server route How to fix this above error?
Ruthew's user avatar
  • 11
2 votes
1 answer
564 views

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)...
halfer's user avatar
  • 181
0 votes
0 answers
486 views

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 ...
chetan mundhe's user avatar
0 votes
0 answers
246 views

Kubernetes Nginx Ingress url rewrite for dynamic id in url

I'm running a Kubernetes cluster on Azure Kubernetes Service(Aks). Currently, I'm having a service called product-service and I have exposed it to the outside using Nginx Ingress. My current ingress ...
Pasindu Prabhashitha's user avatar
0 votes
1 answer
302 views

NGINX config proxy_set_header Host $host prevents IP address from being set

My NGINX server has following Server Block upstream main { least_conn; #Add entries one per upstream server server web01:4000 max_fails=3 fail_timeout=5s; server web01:4001 max_fails=3 ...
strange's user avatar
0 votes
2 answers
319 views

How to return 204 with Nginx Ingress K8S

Is it possible to configure Nginx Ingress to return 204 on a given path? In Nginx, it would look like this: location / { return 204; } Thank you!
Francois Coulloudon's user avatar
0 votes
0 answers
18 views

Passing serving path into application and serving it

I'm trying to serve an application under two different paths What I need is this: http://example.com => http://service1 http://example.com/login => http://service2/login http://example.com/...
TheVrabec's user avatar
0 votes
0 answers
506 views

No route to host from control plane node on bare metal kubernetes

I am running a kubernetes cluster composed of three nodes. Control plane node is running inside an Azure VM, and two worker nodes on two separate bare-metal servers. I have set up the cluster with ...
matko031's user avatar
2 votes
0 answers
493 views

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 ...
ShadowGames's user avatar
0 votes
0 answers
853 views

K8s : nginx-ingress: SSL_do_handshake() failed (SSL: error:191CF08C:SSL routines:tls_parse_ctos_key_share:bad key share)

As we found out that the nginx ingress as well as the cert-manager were outdated and not compatible with the Kubernetes version of 1.22 anymore. I upgrade the two components: nginx-ingress from 0.26.1 ...
sam23's user avatar
  • 59
0 votes
1 answer
593 views

How to allow a tcp service (not http) on custom port inside kubernetes

I have a container running an OPC-server on port 4840. I am trying to configure my microk8s to allow my OPC-Client to connect to the port 4840. Here are examples of my deployment and service: (No ...
Viktor Eriksson's user avatar
1 vote
0 answers
1k views

Is it possible to have multiple ingress paths under the same host that point to the same backend service

I'm trying to restrict access to certain paths on my service how can I accomplish this on kubernetes? I have a service that runs a basic API but it also runs an admin service. Is it possible to use ...
James's user avatar
  • 11
0 votes
1 answer
405 views

nginx-ingress returns 502 After upgrading to kubernetes v1.24.6

When trying to upgrade from kubernetes v1.23.X to v1.24.X. I has been seen that the health probe needs to be changed to be /healthz (azure) I have a configuration that works in 1.23 but not 1.24 I ...
Peter Thomas's user avatar
0 votes
0 answers
783 views

How do I get SignalR server deployed on AWS EKS behind nginx to allow websocket protocol connections?

I have a .NET 6 Web API with SignalR. Everything works perfectly when connecting directly to the API - locally as well as via Endpoint IP:Port on AWS EKS. However, it's failing to connect specifically ...
Akshay Rajpaul's user avatar
0 votes
0 answers
122 views

https only working for login page on kubernetes

I have an EKS cluster that I upgraded to 1.23. The cluster was working prior to the upgrade. I am using an ELB loadbalancer which points to an nginx-ingress controller. The ingress-controller I had ...
zerobit's user avatar
0 votes
0 answers
235 views

Wordpress keeps redirecting to wp-login.php after nginx-ingress update

I have a WordPress site that is working on an older version of Kubernetes. I updated the Kubernetes cluster and the nginx-ingress controller. After the update the main page works, but when we ...
zerobit's user avatar
0 votes
0 answers
241 views

how to shrink nginx.conf with multiple hosts

I have inherited an old nginx-controller with over 100 servers in a blue/green deployment scenario. Right now the single nginx.conf file is over 10k lines. Looking at each server section for each ...
zerobit's user avatar
0 votes
1 answer
277 views

deploy nginx-ingress with large nginx config

I have an nginx-ingress controller that I has multiple hosts connected to it. I have built the config as a ConfigMap, but when I attempt to deploy it, I keep getting and error message that says the ...
zerobit's user avatar
0 votes
0 answers
721 views

nginx-ingress displays 404 page

I have an EKS cluster that I inherited (no documentation). The cluster hadnt been upgraded in years. I was tasked to upgrade it. The version on nginx-ingress was from quay.io which is no longer ...
zerobit's user avatar
0 votes
1 answer
707 views

Preserve client IP in GKE

I have a backend application behind an nginx ingress controller in a GKE cluster and I want to whitelist a certain IP only to access it. I added to the associated ingress this annotation: nginx....
Naran's user avatar
  • 1
0 votes
1 answer
328 views

Azure DevOps Nginx Deployment error for K8s 1.24.x

I was trying to deploy nginx ingress controller in AKS using yaml. While deploying I'm getting below error. unable to build kubernetes objects from current release manifest: resource mapping not found ...
Santoshkumar10's user avatar
0 votes
2 answers
46 views

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 ...
Hubro's user avatar
  • 1,148
13 votes
1 answer
6k views

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 ...
sevenam's user avatar
  • 421
0 votes
1 answer
2k views

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/...
Michel Gokan Khan's user avatar
0 votes
0 answers
34 views

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 ...
Loc Truong's user avatar
1 vote
1 answer
75 views

nginx rewrite rules wildcards

I am trying to do the following nginx redirect /product/reports/v1/stores(/|$)(.*) to /stores(/|$)(.*) seems like it should be simple but I can not get it to work. My intention is to use the nginx....
Adam's user avatar
  • 31
0 votes
1 answer
966 views

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 ...
Rahul V Sharma's user avatar
0 votes
0 answers
2k views

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 ...
Virtuose's user avatar
  • 567
0 votes
2 answers
2k views

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. ...
Modobu's user avatar
  • 1
1 vote
0 answers
1k views

Disable CORS using kubernetes ingress

Is it possible to forcefully disable CORS using kubernetes nginx ingress when the application is allowing CORS? I have an application that I believe is sending Access-Control-Allow-Credentials:true ...
Dushyant Bangal's user avatar
0 votes
1 answer
481 views

Ingress in GKE does not do the routing identically despite same IP at DNS level

I have setup in my GKE cluster an nginx ingress as follows: helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ...
tobias's user avatar
  • 101