Skip to main content

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
Filter by
Sorted by
Tagged with
459 votes
13 answers
171k 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....
arunkjn's user avatar
  • 5,841
146 votes
3 answers
86k 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: ...
Don Rhummy's user avatar
  • 25.5k
110 votes
6 answers
172k 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 ...
camel's user avatar
  • 1,393
83 votes
18 answers
149k 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 ...
PhotonTamer's user avatar
  • 1,107
81 votes
19 answers
131k 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/...
Dorin's user avatar
  • 2,226
80 votes
6 answers
161k 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
Stan Bondi's user avatar
  • 4,336
68 votes
4 answers
104k 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?
Chris Stryczynski's user avatar
66 votes
10 answers
53k 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 ...
Simon Heinzle's user avatar
62 votes
5 answers
37k 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. ...
Vineeth Chitteti's user avatar
59 votes
8 answers
70k 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: ...
Djent's user avatar
  • 3,317
47 votes
7 answers
88k 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 ...
Ankit Gulati's user avatar
44 votes
2 answers
28k 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 ...
Siva's user avatar
  • 7,978
37 votes
3 answers
55k 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 ...
petwri's user avatar
  • 623
37 votes
6 answers
70k 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....
cookandy's user avatar
  • 1,035
36 votes
14 answers
46k 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'...
Tom Raganowicz's user avatar
34 votes
8 answers
39k 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 ...
denski's user avatar
  • 1,968
34 votes
2 answers
45k 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 :)
pioupiou's user avatar
  • 916
33 votes
8 answers
39k 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 ...
ShawnC's user avatar
  • 649
31 votes
3 answers
50k 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 ( ...
eran meiri's user avatar
  • 1,438
31 votes
4 answers
56k 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: ...
atkayla's user avatar
  • 8,669
31 votes
3 answers
31k 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 ...
ColossusMark1's user avatar
26 votes
5 answers
27k 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 ...
Ali's user avatar
  • 1,581
26 votes
5 answers
36k 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:"...
Prabal Rakshit's user avatar
26 votes
6 answers
93k 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....
dezzinto's user avatar
  • 467
26 votes
3 answers
23k 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 ...
Martin Tovmassian's user avatar
25 votes
2 answers
45k 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:...
Alessandro Dentella's user avatar
24 votes
4 answers
20k 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:...
silgon's user avatar
  • 7,073
24 votes
5 answers
98k 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 ...
user avatar
24 votes
1 answer
45k 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 ...
Mugen's user avatar
  • 8,883
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/...
markthethomas's user avatar
22 votes
4 answers
30k 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 ...
Declan McNulty's user avatar
22 votes
4 answers
42k 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 ...
user1722908's user avatar
22 votes
1 answer
48k 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: ...
Pablo Marti Cordero's user avatar
20 votes
5 answers
56k 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 ...
Kit Freddura's user avatar
20 votes
4 answers
30k 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 ...
Matthias M's user avatar
  • 14.2k
19 votes
2 answers
70k 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 ??
ashique's user avatar
  • 1,167
19 votes
4 answers
50k 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: ...
ColossusMark1's user avatar
19 votes
1 answer
15k 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 ...
R-JANA's user avatar
  • 1,138
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 ...
N. v Doorn's user avatar
17 votes
4 answers
13k views

Argocd getting started guide getting FATA[0000] configmap "argocd-cm" not found error

I just tried to go over the getting started guide of Argocd found here https://argo-cd.readthedocs.io/en/stable/getting_started/. I did steps 1 and 2 and then ran the command argocd login --core to ...
gshabi's user avatar
  • 171
17 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 ...
Mike's user avatar
  • 4,115
17 votes
7 answers
64k 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). ...
juanp_1982's user avatar
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 ...
John's user avatar
  • 171
17 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 ...
Kirill's user avatar
  • 8,031
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 ...
Andrey Solonoy's user avatar
16 votes
4 answers
19k 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 ...
Divyaanand Sinha's user avatar
16 votes
2 answers
27k 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 ...
Dave New's user avatar
  • 39.6k
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 ...
wardaddy's user avatar
  • 413
16 votes
8 answers
13k 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....
apoorva kamath's user avatar
16 votes
1 answer
9k 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-...
DanielM's user avatar
  • 6,548

1
2 3 4 5
80