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.
3,690
questions
1
vote
1
answer
18
views
Why is NGINX's $request_uri empty?
I'm using NGINX (v4.5.2) on a Kubernetes cluster, and I'm trying to configure it to redirect non-www URLs to the www equivalent. For example...
https://example.com -> https://www.example.com
...
0
votes
0
answers
25
views
Configure Master/Slave routing in Ingress Nginx
I want a master/slave setup for Artemis ActiveMQ on K8 cluster using stateful set. So here is what I am doing.
Creating two stateful set with service for Master and Slave. The service looks something ...
0
votes
0
answers
16
views
CORS Headers and Kubernets NGINX Controller -> Django App: Do I need to specify them twice?
I just started using Kubernetes and I'm wondering the following:
I used to define the allowed cors headers within my django app which is run via uvicorn or gunicorn in production.
Now I also have to ...
0
votes
0
answers
9
views
ingress ngnix redirection to localhost not working
I have made a cluster ip service in kubernetes and i ma trying to access it using ingress nginx but somehow my redirection from acme.com to localhost is not working(getting 404)
my ingress ngnix ...
0
votes
2
answers
61
views
How to remove trailing slash by using nginx ingress?
I want to configure my ingress.yaml to remove the trailing slash from the path for each route.
For example,
example.com/ should be redirected to example.com
example.com/my-path/ should be redirected ...
0
votes
1
answer
21
views
Ingress different rewrite rules for different services
I am learning Kubernetes and experimenting a bit I have the following ingress file:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: testhost-ingress
annotations:
nginx.ingress....
0
votes
0
answers
25
views
Ray - Cannot Connect to Head Node GCS through URL
I am working in a managed Kubernetes environment. We have three nodes (managed K8S Deployment + Service + Ingress) setup - one head node, and two worker nodes. Using the Service and Ingress ...
1
vote
0
answers
34
views
NextJs Kubernetes Nginx Ingress routing problem
I have a next.js application that is being deployed to an on premises kubernetes cluster. when we build, we do a static build and convert everything into html with next build && next export. ...
0
votes
1
answer
28
views
How to reuse ingress routing rules for inter-service communication within a kubernetes cluster?
I have various microservices running inside a kubernetes cluster. And I have a client library that provides methods to interact with these different microservices. The client library can be installed ...
0
votes
1
answer
28
views
ALB ingress work on http but fail on https
Hi I am deploying an react application on AWS EKS. After I applied my ingress, I can visit the webpage using http://, but got a dns error on https. Does anyone have an idea where might be wrong?
...
0
votes
1
answer
50
views
Is it possible to block port 80 on a K8s ingress?
I'm using the GKE Ingress controller. The ingress is configured to terminate TLS, the underlying service is listening on port 80.
I don't need to serve my frontend externally on port 80 and would ...
0
votes
1
answer
31
views
Kubernetes newby question on ingress and reverse proxy
After running a Proxmox virtualization server on an energy hungry PC for years I finally decided to migrate the services to a kubernetes cluster on raspberries, which (hopefully) also adds better ...
1
vote
0
answers
34
views
How to setup the AWS Cognito App Client Callback URL if it's for multiple domain authentication?
I have few services deployed on a EKS cluster, and they are all accessible through a single load balancer created by AWS Load Balancer Controller with different hostnames. Like,
svc1.example.com
svc2....
0
votes
0
answers
21
views
No route to host from control plane node on bare metal kubernetes [closed]
I am running a kubernetes cluster composed of three nodes. Control plane node is running inside an Azure VM, and two worker nodes on two separate bare-metal servers. I have set up the cluster with ...
1
vote
0
answers
26
views
Do I need a second TLS certificate for dev.fancydomain.com?
I'm deploying an app on my kubernetes cluster. I successfully used cert-manager to create a TLS certificate for fancydomain.com. When a user accesses fancydomain.com, an Ingress rule redirects the ...
0
votes
0
answers
34
views
unable to connect sctp client from my host node to k8s pod
I am running a sctp server in a k8s pod as app. However, when I try to connect to that from my sctp client program running on my node where k8s is installed. I tried both using cluster ip or node port ...
0
votes
0
answers
24
views
In EKS, How can I use type: external name in Services so that I can create ingress rules and services in different namespaces
Am trying to use an external name to point to a service, that exists in a different namespace, which does not seem to work. I want to do this so that I can have my ingress rules defined in a namespace ...
0
votes
1
answer
78
views
Minikube Ingress route and ping not working on windows
I installed a minikube with docker desktop driver on windows. I enabled the ingress addons after starting the minikube.
Following is the ingress I created.
When I am pinging the Ingress IP, I am ...
0
votes
2
answers
57
views
Can't access a simple Ingress in Kubernetes
Important: I am NOT using EKS. I have installed this cluster via shell-script. Consider that it is fully-functioning.
I have a cluster running entirely on EC2 instances, and can't access a very simple ...
-1
votes
0
answers
33
views
NginX giving 502 Bad Gateway
I have updated my azure kubernetes version now it's my nginx is giving this error and saying Service have no active endpoint
W0310 11:51:01.800889 7 controller.go:1112] Service "develop/...
0
votes
1
answer
51
views
How to configure Nginx-Ingress rules with Keycloak
I have a Kubernetes v1.26 self-managed cluster. I have multiple applications exposed through the Nginx-ingress proxy.
I want to protect the access to those apps through authentification, I found ...
0
votes
0
answers
117
views
AWS EKS 1.22 AWS Load balancer controller v2.4.1 : Use and Internet facing Network load balancer on top of internal ingress controller
I have the following cluster running in AWS EKS:
Kubernetes Version: 1.22
AWS load balancer controller version: v2.4.1
Node type: Managed Node
I was reading an article where we can top an NLB with an ...
0
votes
1
answer
41
views
Kubernetes Community NGINX Ingress Controller Returns HTTP 400 For All Requests
I'm attempting to set up a path rewriting ingress to my backend service using the following:
Kubernetes NGINX ingress controller (https://kubernetes.github.io/ingress-nginx), version 1.6.4 (built on ...
1
vote
1
answer
78
views
K8S ingress-nginx Client request body buffering to a temporary file
Been running into a strange warning with ingress-nginx on a K8S deployment.
Basically, the error is
2023/02/16 15:56:03 [warn] 34#34: *7840048 a client request body is buffered to a temporary file /...
0
votes
0
answers
54
views
How to config root_url when grafana serve behind reverse proxy such as ingress-nginx
I am now trying to deploy the grafana service under the https://example.com/monitor path, Traffic is coming in through ingress-nginx, here is my ingress-nginx config
apiVersion: networking.k8s.io/v1
...
0
votes
1
answer
49
views
How to verify deployment when deploying frontend and backend using same ingress in EKS cluster
I have my application with frontend in react and backend in java spring-boot. I'm trying to deploy the application in the EKS cluster. Initially I deployed the frontend, there it gave me an alb, from ...
0
votes
0
answers
47
views
Ingress uses invalid namespace while trying to expose internal service
I'm trying to expose kubernetes-dashboard via ingress nginx addon for educational purposes. Here is my kubernetes-dashboard-ingress.yaml:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
...
0
votes
0
answers
53
views
502 Bad Gateway Ingress nginx with kibana
I'm trying to deploy kibana on a kubernetes cluster. I can port-forward locally and I can access kibana without any problems but when I apply the ingress yaml it gives me a 502 Bad Gateway. What am I ...
0
votes
0
answers
46
views
how to achieve path based routing's with aws alb?
my ingress yaml is as follow's
apiVersion: v1
items:
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:a******...
0
votes
0
answers
42
views
Kong Gateway The upstream server is timing out in AKS via Github Actions
I use Azure AKS for our product and when I send request and if it takes more than one minute, it returns below error as 504 Gateway Time-out
{
"message": "The upstream server is ...
0
votes
0
answers
27
views
eks alb aws-load-balancer-controller context routing
I found many examples on how to create a aws-load-balancer-controller ingress object based on context routing.
My problem is that I need to pass the context to the service since the app also requires ...
0
votes
0
answers
39
views
Self-hosted Rke2 Load balancer No External IP
This is potentially a noob question, but I cannot figure it out on my own even after researching. I have my own HA K8s set up with RKE2. All works fine, NodePort services are accessible. The rancher ...
0
votes
0
answers
22
views
why cluster IPs are called virtual ip in k8s
Why cluster IP is called virtual IP in k8s? It is pingable. It is reachable from the container and does most of the other things what an IP is expected from. So why it is a virtual?
0
votes
2
answers
156
views
k3s + MetalLB: metallb-controller Failed to allocate IP for "default/nginx": no available IPs
I created a k3s cluster and disabled the service loadbalancer & traefik. I installed metallb via a manifest file. Also, I created a ConfigMap for Metallb below named "config" with an ...
1
vote
1
answer
89
views
How to access Kubernetes application hosted on-prem centos server?
I'm fairly new to K8. Using k3d/helm, I installed an application on our on-prem ssh server. I did port forward on 8080. I'm able to do "curl localhost:8080" when I'm inside the server. Could ...
0
votes
0
answers
28
views
how to use aws alb ingress for kubernetes dashboard
I need some guidance on how to set up the ingress for the kubernetes dashboard. I have a wildcard acm cert that is valid. The setup is on a VPC that is not publically available. my yaml is:
apiVersion:...
0
votes
0
answers
35
views
Kubernetes ingress prefix path issue
I have nginx ingress controller deployed using helm, a simple nginx pod, service and ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: all-app-ingress
annotations:
nginx....
0
votes
2
answers
51
views
Ingress with IP address instead of host
I'm self-hosting a few applications on my NAS, like tt-rss. I normally run them with docker-compose. To access an app like this when I'm not on my local network, I point a port of my home router to ...
0
votes
1
answer
54
views
how to use Wireshark between k8s pods
I want to use Wireshark to sniff packets between two k8s pods. I want to run Wireshark on my host laptop where k8s is installed. Basically, I need to run Wireshark from the node and capture inter pod ...
1
vote
1
answer
35
views
GCE Ingress expose websocket service
I want to expose 2 services:
web application at example.com port 80
web sockets at example.com/app/ws port 8000
with given configuration:
apiVersion: "v1"
kind: "Service"
...
-1
votes
1
answer
26
views
Can i route host directly to a path in the backend?
I am using nginx-ingress.
Is it possible to route host to a path of the backend?
For example,
foo.example.com/ -> my-service:80/myapp/gui/
bar.example.com/ -> my-service:80/different/path/here
I ...
0
votes
1
answer
55
views
Kubernetes Ingress - Refuse connection if no match or IP (i.e. disable defaultBackend and don't respond at all) How?
For PCI we need to make sure that absolutely no response comes out that isn't in TLS with a valid certificate. That means that even responding with a certificate that doesn't match the domain is not ...
0
votes
0
answers
43
views
How does the Kubernetes ingress-nginx controller verifies backend application services/pods mapped in Ingress definition are healthy or not?
I am trying to use kubernetes nginx-ingress controller in AKS , in addition to Azure application gateway ingress controller (AGIC), but dont find annotation used for health probe of application ...
0
votes
0
answers
31
views
I need to strip middle part of the URL in Traefik ingress, and need to route only cosidering tale part of the URL
This is my ingress and middle ware configuration yml file
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-ingress
annotations:
traefik.ingress.kubernetes.io/router....
0
votes
0
answers
28
views
Kubernetes Ingress rules for prometheus server
I have a local kind Kubernetes cluster with two workers nodes. I deployed a nginx ingress controller following the tutorial here: https://kind.sigs.k8s.io/docs/user/ingress/ and this yaml https://raw....
0
votes
2
answers
48
views
Nginx Ingress rewrite-target gives 308, service is working
I have an app set up which can be contacted via the service-IP, but not using the Ingress Rule.
Consider the following Ingress Manifest:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name:...
0
votes
0
answers
65
views
How to Connect a Front End to a Back End in kubernetes using proxy_pass upstream or Services?
I have 3 docker images working perfectly in docker compose (Frontend, backend, MySQL)
The frontend Angular Nginx can be accessed through frontend.example.com and all not exposed request to /api path ...
0
votes
0
answers
18
views
develop an Kubernetes application to create deployment of ssh server with its ingress
I'm looking for a solution to develop an app which enables me to request as many as I want of containers (pod) and connect to each one of them through ssh.
I receive this error
✘ emo7@emo7-lap ~/dev/...
0
votes
0
answers
26
views
How to connect to local instance of a Kubernetes DaemonSet from another DaemonSet
I am using a vendor solution that gets deployed as a DaemonSet in my Kubernetes cluster. These pods expose a service on a TCP port.
I would like to author a DaemonSet that would connect this service ...
0
votes
0
answers
47
views
Cannot connect to service through traefik ingress on k3s
Using default k3s installation with vcluster I want to expose my service of type clusterIP to the world with ingress.
curl 172.18.62.21/some_endpoint
<!DOCTYPE html>
<html lang="en"&...