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.

Services and Pods have IPs only routable by the cluster network. All traffic that ends up at an edge router is either dropped or forwarded elsewhere. An Ingress is a collection of rules that allow inbound connections to reach the cluster services.

3847 questions
443
votes
13 answers

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. The role of load balancer is to forward traffic…
arunkjn
  • 5,631
  • 5
  • 21
  • 31
140
votes
2 answers

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: nginx.ingress.kubernetes.io/rewrite-target:…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
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
78
votes
16 answers

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…
Dorin
  • 2,167
  • 4
  • 20
  • 32
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
73
votes
6 answers

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
Stan Bondi
  • 4,118
  • 3
  • 24
  • 35
65
votes
10 answers

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 outlines such an option in the YAML file. Thanks a…
62
votes
4 answers

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?
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
54
votes
5 answers

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. Currently, I can hit only one pod using Kubernetes and I…
Vineeth Chitteti
  • 1,454
  • 2
  • 14
  • 30
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
44
votes
7 answers

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 when I do kubectl describe, I am seeing a…
Ankit Gulati
  • 477
  • 1
  • 4
  • 3
38
votes
2 answers

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 service type as LoadBalancer voila I got public IP Use…
Siva
  • 7,780
  • 6
  • 47
  • 54
34
votes
8 answers

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 create a single node Kubernetes cluster that sits…
denski
  • 1,768
  • 4
  • 17
  • 35
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…
1
2 3
99 100