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
17 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 ...
0 votes
2 answers
24 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 ...
  • 1,098
1 vote
1 answer
95 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 ...
  • 111
0 votes
1 answer
43 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/...
0 votes
0 answers
13 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 ...
0 votes
0 answers
16 views

Ingress to Ingress?

I'm following these instructions https://kubernetes.github.io/ingress-nginx/examples/auth/basic/ to add basic auth to an NGINX Ingress. This is in EKS. I already have an ALB Ingress which does route ...
  • 101
1 vote
1 answer
30 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....
  • 11
0 votes
1 answer
94 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 ...
0 votes
0 answers
59 views

Kubernetes Ingress auth-signin redirect to different port

For me the redirect is happening only to the host (ie metrics.staging.com) and I want to redirect to metrics.staging.com:9099 ? Does anyone know how to redirect it to a host:port? My ingress: nginx....
  • 1
0 votes
0 answers
237 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 ...
  • 537
0 votes
2 answers
272 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. ...
  • 1
1 vote
0 answers
335 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 ...
0 votes
1 answer
95 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 ...
  • 101
0 votes
0 answers
128 views

Kubernetes Ingress controller dual authorization header for oauth proxy

I have the following use case: An http backend application running behind an oauth proxy An OAuth proxy that authenticates users before authorizing access to the backend application In some cases ...
0 votes
1 answer
855 views

Kubernetes Nginx Ingress could not load custom certificate from cert-manager

I am using cert-manager with this custom wildcard certificate apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: letsencrypt-myapp-issuer spec: acme: server: https://acme-v02....
  • 13
0 votes
0 answers
161 views

Google LB failed to check ingress-nginx pods healthz sporadically

It's been weeks since my I'm having a lot of timeout when gcp lbs check ingress-nginx healthz while everything respond correctly. I'm having a GKE cluster with Container Optimized OS and n1-standard-4 ...
  • 1
1 vote
0 answers
122 views

Set up Kubernetes Ingress Nginx in AWS

set up a kubernetes cluster locally and make kubernetes-ingress-nginx works correctly. Now I would like to deploy it on AWS. I set up the kubernetes cluster using kubeadm and it's working correctly. ...
0 votes
0 answers
99 views

K8s cluster on-premises and HAProxy/F5 load balancer

Cluster information: Kubernetes version: 1.23.4 Cloud being used: bare-metal Installation method: kubeadm Host OS: Debian 11.2 CNI and version: docker.io/calico/cni:v3.22.0 CRI and version: containerd:...
1 vote
0 answers
1k views

Updating ingress-nginx helm chart for kubernetes 1.23.5

I am having lots of issues that seem to stem from upgrading my kubernetes cluster to the latest version (1.23.5). I initially had some issues with the cluster itself and the nodes but that seems to be ...
  • 111
1 vote
1 answer
620 views

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 ...
  • 111
0 votes
0 answers
354 views

Load balancer algorithm of bitnami nginx ingress

I do install the ingress controller via helm and the Nginx ingress controller from bitnami, I pretty sure the bitnami use the kubernetes/ingress-nginx from here https://github.com/kubernetes/ingress-...
2 votes
0 answers
118 views

How can I use a plugin in ingress-nginx to wrap a request?

I'm trying to use the lua-circuit-breaker plugin with ingress-nginx in a Kubernetes cluster. I want to set up two upstream servers such that the first is "wrapped" with this circuit breaker, ...
0 votes
1 answer
168 views

Nginx ingress - escape characters

I have the following ingress conf that is exposed via nodePort 32100. When I call (curl) the URL [1] which contains parenthesis, I get HTTP 500 error. But when I call the URL [2] which contains no ...
0 votes
1 answer
69 views

Tomcat application (ERDDAP server) behind a proxy redirection issues

I have an ERDDAP instance running on a Tomcat server behind a NGINX reverse proxy. The environment is completely on Kubernetes, the RP is an NGINX ingress-controller that forwards the request on port ...
0 votes
0 answers
533 views

(nginx) is it possible to preserve http protocol?

I have a backend server that receives HTTP/1.1, HTTP/2.0 plaintext, grpc plaintext over HTTP/2.0 (no tls). I want to use nginx to receive HTTP request from user (HTTP/1.1, HTTP/2, etc), and pass to ...
0 votes
1 answer
332 views

Kubernetes NGINX Ingress controller default page / redirect

I was wondering if there is a way to change the behaviour of the nginx ingress controller so that instead of a 404 page it displays another web page or does a redirect? Sadly you can’t do host: “*” ...
0 votes
0 answers
62 views

Is there any way to persist a response header in Nginx Plus for subsequent request lookups?

In Nginx Plus acting as a reverse proxy I would like to be able to store the key:value represented by a response header in something like a map. As far as I can see, ngx_http_map_module can't be ...
  • 101
3 votes
1 answer
549 views

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 ...
1 vote
1 answer
168 views

VMWare Workstation and Windows 10: can't connect to a server hosted on VM

I have a private 2 nodes Kubernetes cluster configured on VMWare Workstation 15. I'm using MetalLB and Calico. Ingress service and ingress look like: xxx@c1-cp1:~/Desktop$ kubectl get svc -n ingress-...
  • 113
0 votes
0 answers
629 views

AKS Multiple Nginx Ingress with internal LB

Azure Kubernetes - AKS - K8s version - 1.20.9. Trying to setup multiple nginx ingress with Internal LB. ingress controller with ingress-class - helm install test1 ingress-nginx/ingress-nginx \ --...
1 vote
1 answer
224 views

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 ...
0 votes
0 answers
975 views

Kubernetes Dashboard not reachable (error 404)

What I'm trying to do is launching the Kubernetes Dashboard on my cluster. The Dashboard was installed using Kubespray, so I'm pretty sure it's installed correctly (at least its pods run without ...
3 votes
1 answer
310 views

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] &...
0 votes
0 answers
567 views

502 gateway error on Kubernetes Ingress (K3S - Bare Metal)

I have a k3s cluster with a master on a cloud VPS but with 2 remote worker nodes, both on the same network. They're connected via a VPN to the cloud provider. The worker nodes were able to join just ...
  • 465
0 votes
0 answers
113 views

NGINX Ingress Controller forwarded Certificate to Apache2 Extraction

On our k8s cluster we use NGINX Ingress Controller to request the clients (web-browsers) to provide a client certificate. If the certificate is valid, the request ist proxied to a full-blown Apache ...
  • 51
2 votes
1 answer
2k views

Kubernetes ingress 502 bad gateway on DigitalOcean

I am trying to deploy a NestJS app with Kubernetes on DigitalOcean and I have followed this tutorial, but I am always getting a 502 Bad Gateway from the nginx-ingress-controller. That's my deployment....
0 votes
1 answer
158 views

Nginx calculated log variables using lua

I'm trying to get Nginx (running as a Kubernetes ingress controller) to log in milliseconds rather then seconds. (This is so we can ingest the logs into our existing Elasticsearch system, which ...
  • 165
1 vote
0 answers
522 views

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 ...
  • 11
3 votes
1 answer
407 views

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 ...
0 votes
1 answer
4k views

Kubernetes error "Unable to attach or mount volumes"

I deployed bitnami/wordpress helm using nginx ingress as loadbalancer like here. Everything working fine but problem is with some pods when they are created manually or automaticly by autoscaling. ...
1 vote
1 answer
161 views

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)...
0 votes
1 answer
263 views

Mirroring Traffic with Nginx(to increase avaliablity and decrease latency )

I need to duplicate/mirror the traffic comming to my server. I mean, I have N backend servers A1 A2 ... An(n>=2) and a nginx as reverse-proxy&load-balancer. All the traffic comming to Nginx ...
1 vote
0 answers
222 views

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 ...
0 votes
0 answers
59 views

Assign pod an IP address which the same as the IP range of the k8s node

Is that possible to assign pod an IP address which the same as the IP range of my K8s node? For example: I have an on-premise K8s cluster that includes 3 work nodes. All nodes are using the 10.138.1.0/...
  • 151
0 votes
0 answers
96 views

Error validating ssl certificate for svc.IP.my.local-ip.co in ingress

I try use certificate and DNS http://my.local-ip.co/ in Kubernetes. I download certificate and key. Create ingress-tls secret. kubectl create secret tls ingress-tls --key /tmp/server.key --cert /tmp/...
1 vote
1 answer
1k views

NGINX Ingress on Kubernetes doesn't use HTTPS

I am setting a Kubernetes cluster on bare metal. I used Kubeadm for the installation. To make my services accessible from outside the cluster, I installed an NGINX Ingress, using the following ...
  • 11
3 votes
1 answer
5k views

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/...
3 votes
1 answer
2k views

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 ...
2 votes
3 answers
6k views

HTTPS 308 permanent redirection k8s ingress nginx

I have created an EKS cluster following the examples from AWS EKS, I have deployed the nginx ingress controller on top from kubernetes/nginx, Created an ingress resource which points to back end k8s ...
  • 41
4 votes
1 answer
4k views

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 ...
  • 61