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
20
votes
3 answers

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 annotation does not work in AWS ALB ingress. Does…
20
votes
4 answers

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 nginx-controller-pod, and I am seeing an issue where…
Declan McNulty
  • 3,194
  • 6
  • 35
  • 54
20
votes
6 answers

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.ingress.kubernetes.io/cors-allow-credentials: true…
dezzinto
  • 397
  • 1
  • 2
  • 10
19
votes
1 answer

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 Manually) in public subnet and point to the pods running…
R-JANA
  • 1,138
  • 2
  • 14
  • 30
19
votes
4 answers

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

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 my local browser). All request are sent via the…
Matthias M
  • 12,906
  • 17
  • 87
  • 116
18
votes
6 answers

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 comments didn't help. I'm trying to set up…
18
votes
3 answers

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 be made in the External IP addresses section in…
N. v Doorn
  • 181
  • 1
  • 1
  • 3
17
votes
4 answers

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 works just fine. I'd like to switch to using an…
17
votes
5 answers

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 Load Balancer ingress controller in the same…
16
votes
8 answers

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.name` * `servicePort` -> `service.port.name` (for…
16
votes
0 answers

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 is sent to application as last step of OAuth flow.…
16
votes
2 answers

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 60s to process. I can see this from the NGINX…
Dave New
  • 38,496
  • 59
  • 215
  • 394
16
votes
2 answers

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 separate UIs for api-service and book-service ,…
wardaddy
  • 383
  • 1
  • 4
  • 16
16
votes
1 answer

How to debug failed requests with client_disconnected_before_any_response

We have an HTTP(s) Load Balancer created by a kubernetes ingress, which points to a backend formed by set of pods running nginx and Ruby on Rails. Taking a look to the load balancer logs we have detected an increasing number of requests with a…