Skip to main content

Questions tagged [nginx-ingress]

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

nginx-ingress
Filter by
Sorted by
Tagged with
110 votes
6 answers
172k views

Ingress configuration for k8s in different namespaces

I need to configure Ingress Nginx on azure k8s, and my question is if is possible to have ingress configured in one namespace et. ingress-nginx and some serivces in other namespace eg. resources? My ...
camel's user avatar
  • 1,393
94 votes
6 answers
102k views

Nginx Ingress: service "ingress-nginx-controller-admission" not found

We created a kubernetes cluster for a customer about one year ago with two environments; staging and production separated in namespaces. We are currently developing the next version of the application ...
Jørgen's user avatar
  • 3,557
83 votes
18 answers
149k views

Nginx Ingress Controller - Failed Calling Webhook [closed]

I set up a k8s cluster using kubeadm (v1.18) on an Ubuntu virtual machine. Now I need to add an Ingress Controller. I decided for nginx (but I'm open for other solutions). I installed it according to ...
PhotonTamer's user avatar
  • 1,107
59 votes
8 answers
70k views

413 error with Kubernetes and Nginx ingress controller

I'm trying to change the client_max_body_size value, so my NGINX ingress will not return the HTTP 413 Content Too Large error (as seen in the logs). I've tested a few solutions. Here is my config map: ...
Djent's user avatar
  • 3,317
49 votes
3 answers
136k views

nginx ingress & rewrite-target

I have a pod that responds to requests to /api/ I want to do a rewrite where requests to /auth/api/ go to /api/. Using an Ingress (nginx), I thought that with the ingress.kubernetes.io/rewrite-...
matt's user avatar
  • 768
37 votes
3 answers
55k views

Microk8s dashboard using nginx-ingress via http not working (Error: `no matches for kind "Ingress" in version "extensions/v1beta1"`)

I have microk8s v1.22.2 running on Ubuntu 20.04.3 LTS. Output from /etc/hosts: 127.0.0.1 localhost 127.0.1.1 main Excerpt from microk8s status: addons: enabled: dashboard # The ...
petwri's user avatar
  • 623
37 votes
6 answers
70k views

Kubernetes Nginx Ingress not finding service endpoint

I'm having some trouble getting the Nginx ingress controller working in my Kubernetes cluster. I have created the nginx-ingress deployments, services, roles, etc., according to https://kubernetes....
cookandy's user avatar
  • 1,035
36 votes
14 answers
46k views

How to use ConfigMap configuration with Helm NginX Ingress controller - Kubernetes

I've found a documentation about how to configure your NginX ingress controller using ConfigMap: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/ Unfortunately I'...
Tom Raganowicz's user avatar
31 votes
3 answers
50k views

how to configure ingress to direct traffic to an https backend using https

I have a backend using https. I want to separate load on that back-end based on URL/path. I decided to use ingress to do this url/path based logic in order to move traffic to different back-ends ( ...
eran meiri's user avatar
  • 1,438
31 votes
4 answers
56k views

Kubernetes Ingress non-root path 404 Not Found

I have the following that config that works when I try <NodeIP>:30080 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: app-deployment spec: replicas: 3 template: ...
atkayla's user avatar
  • 8,669
31 votes
2 answers
76k views

Sticky sessions on Kubernetes cluster

Currently, I'm trying to create a Kubernetes cluster on Google Cloud with two load balancers: one for backend (in Spring boot) and another for frontend (in Angular), where each service (load balancer) ...
migueltaoliveira's user avatar
26 votes
5 answers
21k views

terraform helm release timeout while waiting for condition

I'm using terraform to provision some resources in azure and I can't seem to get helm to install nginx-ingress because it timeouts waiting for condition helm_release.nginx_ingress: 1 error(s) ...
Matthew The Terrible's user avatar
23 votes
3 answers
18k views

Kustomize how to replace only the host in Ingress configuration

I've got this ingress.yaml base configuration: apiVersion: extensions/v1beta1 kind: Ingress metadata: labels: sia: aza app: asap-ingress-internal name: asap-ingress-internal annotations: ...
jmcollin92's user avatar
  • 2,966
23 votes
1 answer
47k views

Ingress controller to route TCP traffic

I'm trying to setup an ingress controller(nginx) to forward some TCP traffic to a kubernetes service(GCP). There's this tutorial that shows how to route HTTP traffic to services (based on the paths) ...
rasthiya's user avatar
  • 690
22 votes
6 answers
89k views

How can I correctly setup custom headers with nginx ingress?

I have the following configuration: daemonset: apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: nginx-ingress namespace: nginx-ingress spec: selector: matchLabels: app: ...
Andrei Dascalu's user avatar
22 votes
8 answers
41k views

Nginx Ingress returns 413 Entity Too Large

on my Cluster, I'm trying to upload a big file but when I try, I get the 413 Error error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n&...
v2to's user avatar
  • 459
22 votes
4 answers
30k views

nginx-ingress config map snippets being ignored by the nginx.conf

I have a kubernetes cluster, where I have deployed an nginx ingress controller using the helm nginx-ingress chart. I need to add some custom config to the nginx.conf file that is generated in the ...
Declan McNulty's user avatar
22 votes
4 answers
42k views

nginx ingress sub path redirection

I have an ingress controller and ingress resource running with all /devops mapped to devopsservice in the backend. When I try to hit "http://hostname/devops" things work and I get a page (although ...
user1722908's user avatar
22 votes
1 answer
48k views

What is the Best way to Setup Proxy Pass in an Nginx Ingress object for Kubernetes

Currently I am trying to Migrate a site that was living on an Apache Load balanced Server to my k8s cluster. However the application was set up strangely with a proxypass and proxyreversepass like so: ...
Pablo Marti Cordero's user avatar
20 votes
5 answers
56k views

Nginx ingress controller websocket support

Recently I've been working on a toy app using Kubernetes. Part of the app is a web server that needs to support WebSockets. Currently, I'm using port-forwarding to access the web server and everything ...
Kit Freddura's user avatar
19 votes
2 answers
70k views

how to delete a ingress controller on kubernetes?

I have a Kubernetes cluster in which I have multiple ingress controllers. I have deleted the source file of one ingress controller. How can I delete the ingress controller that I don't want further ??
ashique's user avatar
  • 1,167
19 votes
2 answers
15k views

When I would use the "App Root" annotation in Kubernetes

I've read the docs a thousand times but I still don't understand how I would use the nginx.ingress.kubernetes.io/app-root annotation. Can someone please provide an example + description in plain ...
PussInBoots's user avatar
  • 11.8k
17 votes
5 answers
10k views

Can't connect static ip to Ingress on GKE

I am trying to connect my ingress to a static ip. I seem to be following all the tutorials, but still I cannot seem to attach my static ip to ingress. My ingress file is as follows (refering to the ...
Mike's user avatar
  • 4,115
17 votes
5 answers
36k views

How can I access nginx ingress on my local?

I can't connect to my app running with nginx ingress (Docker Desktop win 10). The nginx-ingress controller pod is running, the app is healthy, and I have created an ingress. However, when I try to ...
RMorrisey's user avatar
  • 7,669
17 votes
6 answers
18k views

CertManager Letsencrypt CertificateRequest "failed to perform self check GET request"

Waiting for http-01 challenge propagation: failed to perform self check GET request, it's similar to this bug https://github.com/jetstack/cert-manager/issues/656 but all solutions from GitHub ticket ...
Kirill's user avatar
  • 8,031
17 votes
1 answer
24k views

Kubernetes ingress nginx redirect to https

To redirect any HTTP traffic to HTTPS on tls enabled hosts, I have added the below annotation to my ingress resources nignx.ingress.kubernetes.io/force-ssl-redirect: true With this when I curl the ...
pa1's user avatar
  • 868
16 votes
3 answers
13k views

Why does my bare-metal kubernetes nginx Ingress-controller return a 308?

I am trying to create add the nginx ingress controller to my kubernetes cluster. My current cluster has 3 nodes and they all have open firewall rules in between them. (Note: This is a bare metal ...
nbroeking's user avatar
  • 8,800
16 votes
2 answers
27k views

NGINX ingress controller timing out request after 60s

When a request takes over 60s to respond it seems that the ingress controller will bounce From what I can see our NGINX ingress controller returns 504 to the client after a request takes more than ...
Dave New's user avatar
  • 39.6k
15 votes
2 answers
8k views

What exactly does nginx.ingress.kubernetes.io/rewrite-target: /$1 mean in minikube annotation?

While working with minikube ingress, I have to write nginx.ingress.kubernetes.io/rewrite-target: /$1. I have been trying hard to understand why we need this annotation and how to use it. I know that ...
vagdevi k's user avatar
  • 1,636
15 votes
4 answers
23k views

How can I assign a static IP to my EKS service?

I have an EKS cluster. I created my service and exposed it using ingress-nginx. ingress-nginx external IP appears as a DNS name and not as IP. How can I connect my private domain to point to my EKS ...
alexarsh's user avatar
  • 5,333
15 votes
2 answers
1k views

How do we install dynamic modules (non support officially) on Nginx Ingress Controller? (terraform, helm chart)

I'm managing Kubernetes + nginx. I'd like to install dynamic modules on nginx that are provided by Nginx Ingress Controller. Those dynamic modules are not offered by Nginx Ingress Controller official ...
mto's user avatar
  • 219
14 votes
4 answers
47k views

Kubernetes ingress domain redirect

i want to redirect domain in nginx ingress kubernete. https://test.example.io/preview/qLxiVcDGxCaQ134650121853FTg4 if in url preview comes change domain redirect https://test.app.example.io/...
Harsh Manvar's user avatar
  • 29.2k
12 votes
3 answers
10k views

Error converting YAML to JSON: yaml: line 15: did not find expected alphabetic or numeric character

I want to set wildcard subdomain for my project, using k8s, nginx ingress controller, helm chart: In ingress.yaml file: ... rules: - host: {{ .Values.ingress.host }} ... In values.yaml file, I ...
Phan Ly Huynh's user avatar
12 votes
4 answers
18k views

How to create only internal load balancer with ingress-nginx chart?

In my AWS EKS, I have installed nginx-ingress with following command: helm upgrade --install -f controller.yaml \ --namespace nginx-ingress \ --create-namespace \ --version 3.26.0 \ ...
yogen's user avatar
  • 121
11 votes
2 answers
9k views

How to setup Letsencrypt with Kubernetes microk8s using default Ingress?

Recently, I tried to setup letsencrypt using microk8s and the default ingress controller on a bare-metal server. I found a few guides online that were very useful but it seems as if there must have ...
Emmanuel Mendoza's user avatar
11 votes
3 answers
13k views

cant create a second ingress controller using helm with custom class in Azure k8s cluster

I have created an ingress controller using Helm with default configuration default nginx-ingress-controller LoadBalancer 10.0.182.128 xx.xxx.xx.90 80:32485/TCP,443:31756/TCP ...
ikenahim's user avatar
  • 331
11 votes
2 answers
51k views

How to reload nginx ingress controller

I have a Kubernetes cluster (v. 1.22) and inside it I have Nginx ingress controller deployed. I have found I could reload my ingress in several situations: The next list describes the scenarios when a ...
Halt_07's user avatar
  • 131
11 votes
1 answer
17k views

How Ingress support JWT Authentication?

Right now I'm using Ingress-Nginx as the routing service for the traffic externally. However, there are few articles introduce how Ingress plays JWT authentications to protect internal APIs. Can ...
AI_ROBOT's user avatar
  • 998
11 votes
2 answers
13k views

How to redirect HTTP to HTTPS with Nginx Ingress Controller, AWS NLB and TLS certificate managed by AWS Certificate Manager?

I've tried the following to get HTTP to redirect to HTTPS. I'm not sure where I'm going wrong. ingress-nginx object: apiVersion: v1 kind: Service metadata: name: ingress-nginx namespace: ingress-...
jamesrogers93's user avatar
11 votes
1 answer
23k views

Istio and (or versus) Nginx Ingress Controller

I'am on a journey of testing Istio and at the moment I'am about to test the "canary" capabilities of routing traffic. For my test, I created a small servicemesh composed of 5 microservices (serviceA, ...
Fred Mériot's user avatar
  • 4,327
10 votes
1 answer
14k views

mTLS setup using self-signed cert in Kubernetes and NGINX

I have a Kubernetes cluster (AKS) that is hosting a REST echo service. The service runs fine via HTTP. I am using NGINX ingress to route traffic. I now want to set up this service via HTTPS and with ...
wntrsux's user avatar
  • 133
10 votes
2 answers
9k views

How do I add the x-forwarded-for field to my access logs for the nginx ingress controller?

I'm using the nginx ingress controller on gke, by default these are what my access logs look like: "10.123.0.20 - [10.123.0.20] - - [22/Apr/2019:18:47:59 +0000] "GET /sdflksdf/sdfsdf HTTP/2....
red888's user avatar
  • 30.5k
10 votes
1 answer
16k views

How to properly configure ingress cache to get it working?

I'm trying to configure cache for a specific host, but getting 404. Also It seems my config was not included into final nginx.conf. This file doesn't contain it My ingress.yaml: apiVersion: extensions/...
Сергей Коновалов's user avatar
10 votes
1 answer
8k views

K8S: How to reach pod with SSH service (Gitea) over the same host ingress-nginx exposes as HTTP?

Currently practicing with Kubernetes (managed, on DO), I ran into a issue I couldn't resolve for two days. I have nginx-ingress setup along with cert-manager, and a domain where git.domain.com points ...
Teecup's user avatar
  • 101
10 votes
2 answers
11k views

Unable to get a websocket app work through kubernetes ingress-nginx in a non-root context path

Here is a sample WebSocket app that I'm trying to get it to work from a Kubernetes ingress-nginx controller. Kubernetes yaml: echo " apiVersion: extensions/v1beta1 kind: Deployment metadata: name: ...
Rama Palaniappan's user avatar
10 votes
1 answer
23k views

How to increase max request body size on nginx ingress controller and kong

I have an a service that accepts POSTs with base64 encoded files in the body. I'm currently getting Error: 413 Request Entity Too Large when I POST anything larger than 1MB, otherwise it works fine. ...
dweeb's user avatar
  • 539
10 votes
2 answers
27k views

How to perform custom authentication with kubernetes Ingress

I have deployed few services in kubernetes and using NGINX ingress to access outside.(Using EC2 instance for all cluster setup). Able to access service through host tied with ingress. Now instead of ...
Joe's user avatar
  • 531
10 votes
3 answers
9k views

AWS Nginx Ingress creating Classic Load Balancer instead of Application Load Balancer

I am trying to setup Application Load Balancer to forward traffic to Nginx Ingress controller in AWS. To set up Nginx Ingress controller, I am using this YML which I got it from the installation ...
Prerak Tiwari's user avatar
9 votes
2 answers
12k views

Passing parameters down to permanent redirect in ingress-nginx

I'm using nginx.ingress.kubernetes.io/permanent-redirect: https://www.google.com but want to pass down parameters after / in the redirect. But can't get it to work with pure ingress-nginx, would be ...
CodingNoob123's user avatar
9 votes
2 answers
14k views

How to remove the server header from Kubernetes deployed applications

I am asking this question in the style of question then answer. If you create your Ingress objects for Helm charts or regular "kubectl apply" deployments, after deployment to your cluster, ...
Ian Robertson's user avatar

1
2 3 4 5
50