Questions tagged [kubernetes-ingress]
Ingress gives you a way to route requests to services based on the request host or path, centralizing a number of services into a single entrypoint.
kubernetes-ingress
3,942
questions
455
votes
13
answers
166k
views
Ingress vs Load Balancer
I am quite confused about the roles of Ingress and Load Balancer in Kubernetes.
As far as I understand Ingress is used to map incoming traffic from the internet to the services running in the cluster....
143
votes
3
answers
85k
views
Get error "unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend" when switch from v1beta1 to v1 in Kubernetes Ingress
I had the below YAML for my Ingress and it worked (and continues to work):
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress
namespace: test-layer
annotations:
...
107
votes
6
answers
162k
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 ...
82
votes
18
answers
138k
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 ...
81
votes
18
answers
126k
views
Empty ADDRESS kubernetes ingress
I tried configuring ingress on my kubernetes cluster. I followed the documentation to install ingress controller and ran the following commands
kubectl apply -f https://raw.githubusercontent.com/...
79
votes
6
answers
150k
views
Updating kubernetes helm values
I'd like to update a value config for a helm release on my cluster.
Something like
helm update -f new_values.yml nginx-controller
65
votes
10
answers
52k
views
How to force SSL for Kubernetes Ingress on GKE
Is there a way to force an SSL upgrade for incoming connections on the ingress load-balancer? Or if that is not possible with, can I disable port :80? I haven't found a good documentation pages that ...
65
votes
4
answers
96k
views
Can I set custom ports for a Kubernetes ingress to listen on besides 80 / 443?
I don't mean being able to route to a specific port, I mean to actually change the port the ingress listens on.
Is this possible? How? Where is this documented?
59
votes
5
answers
35k
views
Kubenetes: Is it possible to hit multiple pods with a single request in Kubernetes cluster
I want to clear cache in all the pods in my Kubernetes namespace. I want to send one request to the end-point which will then send a HTTP call to all the pods in the namespace to clear cache. ...
56
votes
8
answers
64k
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:
...
47
votes
7
answers
86k
views
endpoints “default-http-backend” not found in Ingress resource
When I am trying to create an ingress resource for my Kubernetes cluster(ingress controller is already created), Ingress resource/rules are creating and I am able to see in the kubectl get ing.
But ...
41
votes
2
answers
26k
views
What's the difference between exposing nginx as load balancer vs Ingress controller?
I understood Ingress can be used when we want to expose multiple service/routes with a single Load Balancer / public IP.
Now I want to expose my Nginx server to public. I have two choices
Set ...
37
votes
6
answers
66k
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....
36
votes
14
answers
43k
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'...
36
votes
3
answers
54k
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 ...
34
votes
8
answers
38k
views
Simple ingress from host with microk8s?
I would like to do two things with MicroK8s:
Route the host machine (Ubuntu 18.04) ports 80/443 to Microk8s
Use something like the simple ingress defined in the kubernetes.io docs
My end goal is to ...
32
votes
7
answers
36k
views
Minikube with ingress example not working
I'm trying to get an ingress controller working in Minikube and am following the steps in the K8s documentation here, but am seeing a different result in that the IP address for the ingress controller ...
32
votes
2
answers
41k
views
How can I check what ingress controller I have on my kube and what is the default
I have kubeadm and Kubernetes v1.12 without AWS or Google Cloud.
I want to know if the Kubernetes cluster installed already has an ingress controller and if it has two what is the default.
Thanks :)
31
votes
4
answers
53k
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:
...
31
votes
3
answers
29k
views
Kubernetes Ingress network deny some paths
I've a simple kubernetes ingress network.
I need deny the access some critical paths like /admin or etc.
My ingress network file shown as below.
apiVersion: extensions/v1beta1
kind: Ingress
...
29
votes
3
answers
45k
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 ( ...
26
votes
5
answers
35k
views
Kubernetes apiVersion: networking.k8s.io/v1 Issue with 'Ingress'
Wanted your guidance on an issue while executing a Kubernetes YAML file.
My kubectl version is as follows:
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"...
25
votes
5
answers
25k
views
Exposing multiple TCP/UDP services using a single LoadBalancer on K8s
Trying to figure out how to expose multiple TCP/UDP services using a single LoadBalancer on Kubernetes. Let's say the services are ftpsrv1.com and ftpsrv2.com each serving at port 21.
Here are the ...
25
votes
2
answers
44k
views
Logs complaining "extensions/v1beta1 Ingress is deprecated"
I'm adding an Ingress as follows:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cheddar
spec:
rules:
- host: cheddar.213.215.191.78.nip.io
http:
paths:
- backend:...
24
votes
6
answers
85k
views
CORS rules nginx-ingress rules
I need to allow requests from multiple origins: http://localhost:4200, http://localhost:4242, etc., on nginx-ingress version 1.7.1. But I'm not able to do that for multiple origins, because nginx....
24
votes
4
answers
19k
views
kubernetes ingress with multiple target-rewrite
Usually ingress rewrite target works as follows:
nginx.ingress.kubernetes.io/rewrite-target: /
This will rewrite the target of your service names as they are in the root directory. So if I have this:...
24
votes
5
answers
91k
views
Getting an Kubernetes Ingress endpoint/IP address
Base OS : CentOS (1 master 2 minions)
K8S version : 1.9.5 (deployed using KubeSpray)
I am new to Kubernetes Ingress and am setting up 2 different services, each reachable with its own path.
I have ...
24
votes
4
answers
11k
views
Create kubernetes nginx ingress without GCP load-balancer
So I'm using Kubernetes for a side project and it's great. It's cheaper to run for a small project like the one I'm on (a small cluster of 3-5 instances gives me basically everything I need for ~$30/...
23
votes
3
answers
21k
views
How to rewrite target url within an AWS ALB Ingress Controller?
In a classic Kubernetes Nginx ingress I know that it is possible to rewrite target url based on a specific regex by appling this annotation nginx.ingress.kubernetes.io/rewrite-target: /$1
But this ...
22
votes
4
answers
40k
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 ...
22
votes
1
answer
42k
views
How to use Session Affinity on requests to Kubernetes service?
I could not find a documentation that specifies how Kubernetes service behaves when the affiliated deployment is scaled with multiple replicas.
I'm assuming there's some sort of load balancing. Is it ...
22
votes
1
answer
45k
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:
...
21
votes
4
answers
28k
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 ...
20
votes
4
answers
51k
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 ...
19
votes
4
answers
48k
views
Kubernetes Cross Namespace Ingress Network
I have a simple ingress network, I want to access services at different namespaces, from this ingress network.
How I can do this?
My ingress network yaml file:
apiVersion: extensions/v1beta1
kind: ...
19
votes
4
answers
29k
views
Kubernetes: Routing non HTTP Request via Ingress to Container
I use a local kubernetes bundled with docker on Mac OS.
I've installed the nginx-ingress-controller.
I managed to send external http request via ingress to my kubernetes managed containers (e.g. from ...
19
votes
1
answer
14k
views
EKS in private Subnet , Load Balancer in public subnet
I am running EKS in private subnet and thus unable to create an internet facing load balancer but was able to create Internal LoadBalancer.
Is there any way I can create Loadbalancer(probably ...
18
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 ...
18
votes
3
answers
10k
views
Global static IP name on NGINX Ingress
I'm having difficulties getting my Ingress controller running on Google Container Engine. I want to use an NGINX Ingress Controller with Basic Auth and use a reserved global static ip name (this can ...
17
votes
2
answers
62k
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 ??
17
votes
5
answers
14k
views
Does GKE support nginx-ingress with static ip?
I have been using the Google Cloud Load Balancer ingress. However, I'm trying to install a nginxinc/kubernetes-ingress controller in a node with a Static IP address in GKE.
Can I use Google's Cloud ...
17
votes
0
answers
2k
views
Nginx ingress returns 502 after POST with redirect
My hosting provider is DigitalOcean. Main page (e.g. /) requires user to be authenticated. If user is not authenticated he is redirected to identity server. Once user enters credentials POST request ...
16
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 ...
16
votes
6
answers
60k
views
how to redirect http to https using a kubernetes ingress controller on Amazon EKS
I have configured amazon certificate manager, ALB Ingress Controller and a domain names for my application. I can access my application through port 80 and port 443 (all certificates works just fine). ...
16
votes
4
answers
18k
views
Kubernetes multiple ingress objects with same configs
Suppose I create multiple ingress objects in k8s which point to the same service, same path and are exactly the same, only they have different names eg-. ingress-1 and ingress-2. How are the requests ...
16
votes
2
answers
26k
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 ...
16
votes
2
answers
24k
views
How to serve static contents in a kubernetes application
I have a small java webapp comprising of three microservices - api-service,book-service and db-service all of which are deployed on a kubernetes cluster locally using minikube.
I am planning to keep ...
16
votes
8
answers
12k
views
how to convert all kubernetes ingress yamls to use API version networking.k8s.io/v1
Kubernetes Ingress API version networking.k8s.io/v1 has lot of changes in fields wrt extensions/v1beta1 like the following:
* `spec.backend` -> `spec.defaultBackend`
* `serviceName` -> `service....
16
votes
1
answer
8k
views
Redirect in Traefik from one domain to another
According to the Traefik 1.7 documentation you should be able to have Traefik perform a 302 redirect using:
traefik.ingress.kubernetes.io/redirect-regex
traefik.ingress.kubernetes.io/redirect-...
16
votes
1
answer
3k
views
How to debug failed requests with client_disconnected_before_any_response
We have an HTTP(s) Load Balancer created by a kubernetes ingress, which points to a backend formed by set of pods running nginx and Ruby on Rails.
Taking a look to the load balancer logs we have ...