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
1
vote
2 answers

Python pod can't connect to MongoDB when using Ingress

It can connect fine whenever I try to access it via the worker node's address, but not when I try access via the ingress gateway. I get the following error: pymongo.errors.ServerSelectionTimeoutError pymongo.errors.ServerSelectionTimeoutError:…
jor2
  • 460
  • 2
  • 5
  • 21
1
vote
2 answers

Ingress rewrite rule in aks agic gives 502

I'm trying to create HTTPS ingress for my node.js authentication (auth) REST service in AKS, but I'm getting a 502 Bad Gateway response. Here's my deployment and service definitions: --- apiVersion: apps/v1 kind: Deployment metadata: name: auth …
1
vote
0 answers

Is there a way to update the host in flask behind gunicorn in kubernetes

While working on an API written with flask and flask restplus, I have had an issue. Indeed, I need to do an action which is asynchronous, so I return a http response with a status code 202 and a Location header: /api/tasks/{id}. Flask takes this…
ocheriaf
  • 580
  • 3
  • 11
1
vote
1 answer

Minikube | Ingress Service - Bad Request

I'm working on a single-node cluster which works fine with docker-compose but the reconfiguration of the same setup using Minikube Ingress Controller gives me a Bad Request response. Bad Request Your browser sent a request that this server could…
1
vote
1 answer

How to route traffic from pysical server's port to minikube cluster?

I want to sent traffic from one port through kubernetes cluster (using minikube) to another physical port. I don't know how to route traffic from physical port to cluster and from cluster to the second physical port. I'm exposing cluster via ingress…
1
vote
2 answers

Network Policy in Kubernetes

I am connecting Nodejs app with mongodb using kubernetes cluster. I want to ensure that mongo POD communicates only with Nodejs POD and deny any other POD traffic. When I apply the default deny policy and then apply the allow policy by app is not…
1
vote
1 answer

Kubernetes Ingress - Second Node Port is not responding

I am running K8S cluster on-premise (Nothing in the cloud) with one K8S Master and two worker nodes. k8s-master : 192.168.100.100 worker-node-1 : 192.168.100.101 worker-node-2 : 192.168.100.102 I used kubernetes / ingress-nginx for routing traffic…
1
vote
1 answer

Expose Google Endpoint API on ingress

I have an API on google Endpoint, the backend is deployed on GKE and I'd like to expose it via an ingress so I can use IAP on it. I am using ESP2. I first deploy my service as a LoadBalancer and it was working. Thing is my ingress says: "All backend…
1
vote
1 answer

Traefik behind ssl terminating load balancer return 404

I have a K8s setup with traefik being exposed like this kubernetes: ingressClass: traefik service: nodePorts: http: 32080 serviceType: NodePort Behind, I forward some requests to different services apiVersion: extensions/v1beta1 kind:…
qkhanhpro
  • 4,371
  • 2
  • 33
  • 45
1
vote
1 answer

Kubernetes Ingress - Load balancer traffic split

I have a kubernetes ingress of class nginx and two load balancers. Running on GKE v1.17. Sample ingress yaml: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: my-ingress annotations: …
Montoya
  • 2,819
  • 3
  • 37
  • 65
1
vote
1 answer

Consistent Hashing based on HTTP header for Kubernetes Service

I have a K8s Service named orderProcessor with 5 pods. Based on the orderId HTTP Request header, I want to route the HTTP call to a specific pods. For example: requestId with orderId ABC should always go to Pod A and requestId with orderId PQR…
Jerald Baker
  • 1,121
  • 1
  • 12
  • 48
1
vote
1 answer

routing wildcard domain to different paths in nginx ingress

how do I achieve something similar to this. apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx ingress.kubernetes.io/rewrite-target: /c/{word-maching-wildcard} name: some-route …
chandan
  • 964
  • 1
  • 19
  • 26
1
vote
3 answers

Ingress - default backend - 404 on TLS

I'm using Rancher 2.4.7 to deploy applications on customer's environments. I successfully created a new cluster for a production environment however whenever I create an Ingress resource with a specific hostname (the certificate is valid) : I get…
HDSmile
  • 11
  • 1
  • 3
1
vote
1 answer

configure haproxy ingress on k8s v19 for jenkins application on Redhat Linux 7.9 server

I am deploying the Jenkins application using k8s v19 on Redhat 7.9 machine.I could able to connect to an application URL with port number(jenkins-test-ci.xyz.com:32419(node port).) but not able to log in via jenkins-test-ci.xyz.com. I have…
1
vote
0 answers

Ingress Openshift

I have application which is running perfectly in docker containers and I am working on migration to Openshift but I am having problems with ingress in Openshift. Services: auth (keycloak) reachable on www.website.com/auth -> keycloak UI Product…
Palino1611
  • 39
  • 2