Questions tagged [nginx-ingress]

ingress-nginx is an NGINX controller built around the Kubernetes Ingress resource that uses ConfigMap to store the NGINX configuration.

2425 questions
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:…
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
1 answer

Kubernetes ingress nginx redirect to https

To redirect any HTTP traffic to HTTPS on tls enabled hosts, I have added the below annotation to my ingress resources nignx.ingress.kubernetes.io/force-ssl-redirect: true With this when I curl the host in question, I get redirected as expected But…
pa1
  • 778
  • 3
  • 11
  • 26
11
votes
2 answers

How to redirect HTTP to HTTPS with Nginx Ingress Controller, AWS NLB and TLS certificate managed by AWS Certificate Manager?

I've tried the following to get HTTP to redirect to HTTPS. I'm not sure where I'm going wrong. ingress-nginx object: apiVersion: v1 kind: Service metadata: name: ingress-nginx namespace: ingress-nginx labels: app.kubernetes.io/name:…
jamesrogers93
  • 335
  • 1
  • 5
  • 15
10
votes
2 answers

How to setup Letsencrypt with Kubernetes microk8s using default Ingress?

Recently, I tried to setup letsencrypt using microk8s and the default ingress controller on a bare-metal server. I found a few guides online that were very useful but it seems as if there must have been a recent update to microk8s that changed the…
10
votes
3 answers

AWS Nginx Ingress creating Classic Load Balancer instead of Application Load Balancer

I am trying to setup Application Load Balancer to forward traffic to Nginx Ingress controller in AWS. To set up Nginx Ingress controller, I am using this YML which I got it from the installation instructions. After deployment, everything is working…
10
votes
1 answer

How Ingress support JWT Authentication?

Right now I'm using Ingress-Nginx as the routing service for the traffic externally. However, there are few articles introduce how Ingress plays JWT authentications to protect internal APIs. Can someone share some information about it?
AI_ROBOT
  • 958
  • 1
  • 9
  • 19
10
votes
1 answer

How to increase max request body size on nginx ingress controller and kong

I have an a service that accepts POSTs with base64 encoded files in the body. I'm currently getting Error: 413 Request Entity Too Large when I POST anything larger than 1MB, otherwise it works fine. My setup has kong proxying to the service. I have…
dweeb
  • 539
  • 2
  • 6
  • 21
10
votes
2 answers

How do I add the x-forwarded-for field to my access logs for the nginx ingress controller?

I'm using the nginx ingress controller on gke, by default these are what my access logs look like: "10.123.0.20 - [10.123.0.20] - - [22/Apr/2019:18:47:59 +0000] "GET /sdflksdf/sdfsdf HTTP/2.0" 404 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X…
red888
  • 27,709
  • 55
  • 204
  • 392
10
votes
2 answers

Unable to get a websocket app work through kubernetes ingress-nginx in a non-root context path

Here is a sample WebSocket app that I'm trying to get it to work from a Kubernetes ingress-nginx controller. Kubernetes yaml: echo " apiVersion: extensions/v1beta1 kind: Deployment metadata: name: ws-example spec: replicas: 1 template: …
9
votes
2 answers

How to reload nginx ingress controller

I have a Kubernetes cluster (v. 1.22) and inside it I have Nginx ingress controller deployed. I have found I could reload my ingress in several situations: The next list describes the scenarios when a reload is required: New Ingress Resource…
Halt_07
  • 111
  • 1
  • 1
  • 5
9
votes
1 answer

How to properly configure ingress cache to get it working?

I'm trying to configure cache for a specific host, but getting 404. Also It seems my config was not included into final nginx.conf. This file doesn't contain it My ingress.yaml: apiVersion: extensions/v1beta1 kind: Ingress metadata: name:…
9
votes
2 answers

Difference between request_duration and response_duration prometheus metrics in ingress controller

Below 3 metric from ingress controller is available in our prometheus , i am trying to understand the difference between this metrics. My understanding, request_duration - time between the request reached in nginx and the response send back to…
Sanjay Gopinath
  • 101
  • 2
  • 3
9
votes
2 answers

How to remove the server header from Kubernetes deployed applications

I am asking this question in the style of question then answer. If you create your Ingress objects for Helm charts or regular "kubectl apply" deployments, after deployment to your cluster, you might see the server header in your responses. This is…
Ian Robertson
  • 2,652
  • 3
  • 28
  • 36
9
votes
1 answer

Ingress with and without host

It is really getting hard to understand and debug the rules for ingress. Can anyone share a good reference? The question is how the ingress works without specifying the host? apiVersion: extensions/v1beta1 kind: Ingress metadata: …
Dan
  • 651
  • 1
  • 14
  • 31