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
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
31
votes
2 answers

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 :)
pioupiou
  • 836
  • 2
  • 14
  • 29
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
3 answers

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 metadata: name: ingress-test spec: rules: -…
ColossusMark1
  • 1,189
  • 4
  • 14
  • 27
27
votes
7 answers

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 is different than that for Minikube (the example…
ShawnC
  • 559
  • 1
  • 6
  • 18
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

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:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38",…
Prabal Rakshit
  • 417
  • 1
  • 6
  • 16
25
votes
2 answers

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: service: name: cheddar …
Alessandro Dentella
  • 1,250
  • 2
  • 16
  • 30
25
votes
4 answers

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 options that I can think of and their limitations…
Ali
  • 1,521
  • 1
  • 10
  • 19
23
votes
4 answers

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/month on GCP). The only area where I'm struggling…
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
22
votes
5 answers

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 created 2 deployments : kubectl run nginx…
user4889345
22
votes
4 answers

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: apiVersion: extensions/v1beta1 kind:…
silgon
  • 6,890
  • 7
  • 46
  • 67
21
votes
1 answer

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 related to the service type? Also, I would want…