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
0
votes
0 answers

(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 backend, preserving HTTP version without using…
Madeline
  • 1
  • 1
0
votes
1 answer

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: “*” To achieve the same thing since its not a valid…
0
votes
0 answers

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 changed at runtime so I think that's ruled out. What…
Adrian
  • 101
0
votes
0 answers

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 \ --set controller.replicaCount=1 \ --set…
sanjayparmar
  • 633
  • 8
  • 19
0
votes
0 answers

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 errors). Cluster's setup overview is the following: $…
AbreQueVoy
  • 175
  • 9
0
votes
1 answer

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 already has other systems logging in ms) Based on this…
Mark
  • 165
  • 1
  • 6
0
votes
1 answer

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. Some of them (not all) have all time…
Don Don Don
  • 1
  • 1
  • 3
0
votes
1 answer

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 redirect to both Ax and Ay(x!=y) in parallel, if one of the…
Scott混合理论
  • 1,141
  • 1
  • 7
  • 5
0
votes
0 answers

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/24 IP range as INTERNAL-IP. It is the IP address…
ITnewbie
  • 171
  • 2
  • 9
0
votes
0 answers

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/bundled_cert_file.pem Try install kubernetes…
Anton Patsev
  • 111
  • 4
0
votes
0 answers

Kubernetes pod, allow HTTP access just from VPN

Okay, maybe I'm not searching correctly since I didn't found the answer, so help me please. So, I have an EKS cluster (kubernetes cluster provided by AWS), and I have some web applications running there. These applications are exposed to the…
0
votes
0 answers

HAProxy reverse proxy connecting to Kubernetes nginx-ingress controller issue

Background: I've got a one node K8s cluster via kubeadm with the default nginx-ingress controller deployed. I'm trying to get the default nginx web server deployment accessible to test successful node ingress via the nginx ingress controller. Since…
0
votes
0 answers

URLs with special characters don't redirect to the backend service

My nginx ingress dont redirect correctly urls having the special characters "[" and "]" to the backend service. There is my ingress config: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: {{ $app }}-ingress labels: app:…
0
votes
0 answers

Nginx adds www to the header host

location / { proxy_set_header Host sub.domain.host.com; proxy_pass https://other.host.com/; } The host header ends up being www.sub.domain.host.com, is there a way to prevent the www from being added?
0
votes
1 answer

nginx ingress IP allowlist on Azure Kubernetes Services

I have a SOLR cluster set up with a Service of type LoadBalancer to expose port 8983. A requirement is SSL termination, so I have set up an nginx ingress controller with a route through to the back end service. All of this is working as expected,…