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

How to access MySql hosted with Nginx Ingress+Kubernetes from client

I am new to Kubernetes and Nginx Ingress tools and now i am trying to host MySql service using VHost in Nginx Ingress on AWS. I have created a file something like : apiVersion: v1 kind: Service metadata: name: mysql labels: app: mysql spec: …
Vivek Kumar
  • 515
  • 2
  • 6
  • 9
12
votes
2 answers

Ingress controller name for the ingress class

I am setting up my ingress controller, ingress class and ingress to expose a service outside the cluster. This is fresh cluster setup. I have setup the nginx-ingress controller using kubectl apply -f…
letthefireflieslive
  • 11,493
  • 11
  • 37
  • 61
12
votes
1 answer

Should Kubernetes Ingress lives together with a Spring Cloud Gateway?

Small architecture and design question please. Question: Should Kubernetes Ingress lives together with Spring Cloud Gateway? If not, which one should be preferred? First, with a Spring Webflux / Spring Cloud Gateway project, I managed to have…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
12
votes
2 answers

Terraform AWS EKS ALB Kubernetes Ingress won't create Listeners or Target Groups

I am trying to create an AWS EKS cluster with an ALB ingress using Terraform resources. This document indicates that the ingress will automatically create a load balancer with associated listeners and target groups. The Kubernetes Ingress creates an…
12
votes
4 answers

Kubernetes ingress rules: How to use wildcard and specific subdomain together

I want Ingress to redirect a specific subdomain to one backend and all others to other backend. Basically, I want to define a rule something like the following: If subdomain is foo.bar.com then go to s1, for all other subdomains go to s2 When I…
fyelci
  • 1,399
  • 2
  • 16
  • 27
12
votes
3 answers

Kubernetes basic authentication with Traefik

I am trying to configure Basic Authentication on a Nginx example with Traefik as Ingress controller. I just create the secret "mypasswd" on the Kubernetes secrets. This is the Ingress I am using: apiVersion: extensions/v1beta1 kind:…
Asier Gomez
  • 6,034
  • 18
  • 52
  • 105
11
votes
2 answers

Kubernetes Service not distributing the traffic evenly among pods

I am using Kubernetes v1.20.10 baremetal installation. It has one master node and 3 worker nodes. The application simply served HTTP requests. I am scaling the deployment based on the (HPA) Horizontal Pod Autoscaler and I noticed that the load is…
11
votes
3 answers

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 62m default nginx-ingress-default-backend …
ikenahim
  • 331
  • 1
  • 3
  • 15
11
votes
4 answers

How to set up a custom HTTP error in Kubernetes

I want to create a custom 403 error page. Currently I already have an Ingress created and in the annotations I have something like this: "nginx.ingress.kubernetes.io/whitelist-source-range": "100.01.128.0/20,88.100.01.01" So any attempt to access…
RagnaRock
  • 2,432
  • 7
  • 34
  • 56
11
votes
4 answers

Is it possible to have an Ingress point to a Service from another namespace?

What I want to do is have a service in the default namespace and ingresses in my other namespaces, which point to that service. I tried implementing the service and Ingress shown below, but it didn't work. kind: Service apiVersion: v1 metadata: …
Daniel
  • 509
  • 1
  • 4
  • 17
11
votes
3 answers

Kubernetes Ingress Whitelist IP for path

I know I can whitelist IPs for the entire ingress object, but is there a way to whitelist IPs for individual paths? For example, if I only want to allow /admin to be accessed from 10.0.0.0/16? ingress.yml: --- apiVersion: extensions/v1beta1 kind:…
cclloyd
  • 8,171
  • 16
  • 57
  • 104
11
votes
2 answers

Kubernetes ALB ingress: How to expose multiple ports on ingress resource

I'm trying to find a solution for the problem that seems like something very common. I have a k8s cluster ip service which exposes two ports: 8088 and 60004 I would like to expose these same ports on ALB and not use path based routing This works…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
11
votes
4 answers

how to setup basic rabbitmq on kubernetes

I need to setup a basic rabbit mq instance (no cluster setup) without persistence or security requirements on a kubernetes cluster. What I need: Single rabbit mq pod running as stateful set with replicas = 1, and reach it from inside and outside of…
11
votes
1 answer

Nginx ingress controller vs HAProxy load balancer

What is the difference between Nginx ingress controller and HAProxy load balancer in kubernetes?
yasin lachini
  • 5,188
  • 6
  • 33
  • 56
10
votes
3 answers

Kubernetes ingress controller not able to find the certificate secret

I am setting up a secret containing the certificate for ingress controller but getting the below error when I check the ingress logs Ingress logs: W0304 05:47:32.020497 7 controller.go:1153] Error getting SSL certificate "default/auth-tls":…
Divya Vyas
  • 323
  • 1
  • 4
  • 16