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

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 configuration looks like below. apiVersion:…
0
votes
1 answer

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 fail_timeout=5s; } server { …
0
votes
2 answers

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

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/signup => http://service2/signup In other words I need to…
TheVrabec
  • 1
  • 1
0
votes
0 answers

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 kubeadm and two worker nodes joined without issues.…
0
votes
0 answers

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 to 1.5.1. and the cert-manager from version…
0
votes
1 answer

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 namespace is defined here but they are deployed…
0
votes
1 answer

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 have a configuration that works in 1.24 but not…
0
votes
0 answers

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 via the websocket transport method when I try to…
0
votes
0 answers

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 to rebuild it I have looked cant seem to find…
zerobit
  • 1
  • 1
0
votes
0 answers

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 attempt to login WordPress keeps trying to 302 redirect…
0
votes
0 answers

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 they all appear to be the same for each with the…
zerobit
  • 1
  • 1
0
votes
1 answer

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 config is to large. If creating a ConfigMap is…
zerobit
  • 1
  • 1
0
votes
0 answers

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 maintained. I was able to upgrade the cluster to…
zerobit
  • 1
  • 1
0
votes
1 answer

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.ingress.kubernetes.io/whitelist-source-range:…
Naran
  • 1