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
16
votes
1 answer

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-replacement My goal is to simply remove the www. from…
DanielM
  • 6,380
  • 2
  • 38
  • 57
15
votes
1 answer

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 ??
ashique
  • 935
  • 2
  • 8
  • 26
15
votes
2 answers

How do we install dynamic modules (non support officially) on Nginx Ingress Controller? (terraform, helm chart)

I'm managing Kubernetes + nginx. I'd like to install dynamic modules on nginx that are provided by Nginx Ingress Controller. Those dynamic modules are not offered by Nginx Ingress Controller official configmap…
mto
  • 219
  • 1
  • 4
15
votes
4 answers

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 handled in this case? Are the requests duplicated…
Divyaanand Sinha
  • 366
  • 1
  • 3
  • 12
15
votes
6 answers

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). However I would like to redirect all coming…
juanp_1982
  • 917
  • 2
  • 16
  • 37
14
votes
1 answer

Minikube Kubernetes won't allow ingress on Mac despite running as a VM

I ran minikube start --vm=true which output: minikube v1.12.2 on Darwin 10.15.5 ✨ Using the docker driver based on existing profile ❗ Your system has 16384MB memory but Docker has only 1991MB. For a better performance increase to at least 3GB. …
Sticky
  • 3,671
  • 5
  • 34
  • 58
14
votes
4 answers

ALB Ingress - Redirect Traffic from HTTP to HTTPS not working

I am trying to route all HTTP traffic to HTTPS. I have a ALB ingress resource and following the guide here https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/tasks/ssl_redirect/#how-it-works but its not working. When i try to access…
14
votes
3 answers

Google Kubernetes Engine: How to define one Ingress for multiple namespaces?

On GKE, K8s Ingress are LoadBalancers provided by Compute Engine which have some cost. Example for 2 months I payed 16.97€. In my cluster I have 3 namespaces (default, dev and prod) so to reduce cost I would like to avoid spawning 3 LoadBalancers.…
akuma8
  • 4,160
  • 5
  • 46
  • 82
14
votes
4 answers

Kubernetes ingress domain redirect

i want to redirect domain in nginx ingress kubernete. https://test.example.io/preview/qLxiVcDGxCaQ134650121853FTg4 if in url preview comes change domain redirect https://test.app.example.io/preview/qLxiVcDGxCaQ134650121853FTg4 what i was…
Harsh Manvar
  • 27,020
  • 6
  • 48
  • 102
14
votes
5 answers

Kubernetes Ingress Controller returning 503 Service Unavailable

So, I have an ingress controller routing traffic to three different services, but only one is working, all others are returning 503. INGRESS YAML apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test-ingress namespace: dev …
Thiago Casa Nova
  • 208
  • 1
  • 4
  • 14
13
votes
5 answers

Kubernetes Ingress: Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io"

Playing around with K8 and ingress in local minikube setup. Creating ingress from yaml file in networking.k8s.io/v1 api version fails. See below output. Executing > kubectl apply -f ingress.yaml returns Error from server (InternalError): error when…
norym
  • 602
  • 2
  • 8
  • 18
13
votes
5 answers

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 static ip "test-ip") apiVersion:…
13
votes
2 answers

How to get Kubernetes Ingress Port 80 working on baremetal single node cluster

I have a bare-metal kubernetes (v1.11.0) cluster created with kubeadm and working fine without any issues. Network with calico and made it a single node cluster using kubectl taint nodes command. (single node is a requirement). I need to run…
sithumc
  • 3,254
  • 8
  • 27
  • 46
13
votes
2 answers

Exposing a service in Kubernetes using nginx reverse proxy

I am new to Kubernetes and wanted to understand how I can expose a service running in Kubernetes to the outside world. I have exposed it using a NodePort on the cluster. So, for example: A service exposes port 31234 on the host and I can get to the…
devops84uk
  • 691
  • 2
  • 6
  • 20
13
votes
4 answers

How to setup up DNS and ingress-controllers for a public facing web app?

I'm trying to understand the concepts of ingress and ingress controllers in kubernetes. But I'm not so sure what the end product should look like. Here is what I don't fully understand: Given I'm having a running Kubernetes cluster somewhere with a…
Jens Kohl
  • 5,899
  • 11
  • 48
  • 77