Questions tagged [nginx-ingress]

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

2425 questions
95
votes
6 answers

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 files looks like so: #…
camel
  • 1,233
  • 2
  • 12
  • 18
88
votes
6 answers

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 and need an environment for this development…
Jørgen
  • 3,467
  • 6
  • 33
  • 49
76
votes
16 answers

Nginx Ingress Controller - Failed Calling Webhook

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 the docs, section "bare-metal": kubectl apply -f…
PhotonTamer
  • 1,047
  • 1
  • 8
  • 9
51
votes
8 answers

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: kind: ConfigMap apiVersion: v1 data: …
Djent
  • 2,877
  • 10
  • 41
  • 66
45
votes
3 answers

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-target: annotation I could do it something like…
matt
  • 708
  • 1
  • 6
  • 11
33
votes
3 answers

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 Kubernetes dashboard ha-cluster #…
petwri
  • 553
  • 1
  • 4
  • 11
33
votes
14 answers

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've no idea and couldn't find it anywhere how to…
33
votes
6 answers

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.github.io/ingress-nginx/deploy/ I also deployed a…
cookandy
  • 905
  • 1
  • 8
  • 16
29
votes
3 answers

Kubernetes Ingress non-root path 404 Not Found

I have the following that config that works when I try :30080 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: app-deployment spec: replicas: 3 template: metadata: labels: name: app-node spec: …
atkayla
  • 8,143
  • 17
  • 72
  • 132
28
votes
2 answers

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) communicates with 2 replicas (pods). To achieve…
26
votes
2 answers

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 ( same back-ends , just duplicated to different…
eran meiri
  • 1,322
  • 3
  • 12
  • 29
25
votes
5 answers

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) occurred: helm_release.nginx_ingress: rpc error: code =…
22
votes
1 answer

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: ProxyPass /something…
22
votes
4 answers

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 without CSS and styles) with a set of hyperlinks for…
user1722908
  • 535
  • 2
  • 9
  • 21
21
votes
3 answers

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: kubernetes.io/ingress.class:…
jmcollin92
  • 2,896
  • 6
  • 27
  • 49
1
2 3
99 100