Questions tagged [kubernetes-networking]
106 questions
43
votes
5 answers
What is the cluster IP in Kubernetes?
I have created a cluster of three nodes: one master, two minions.
How to check the cluster IP in Kubernetes?
Is it the IP of the master node?

Madhurima Mishra
- 1,063
- 3
- 14
- 27
28
votes
3 answers
Why do we need a port/containerPort in a Kuberntes deployment/container definition?
When I define e.g. a deployment in Kubernetes there is a section with a list of containers and each of them contains an array of ports, e.g.:
apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
containers:
- name: my-nginx
…

Ilya Chernomordik
- 27,817
- 27
- 121
- 207
14
votes
1 answer
External ip pending Kubernetes Load balancer
Hi Installed Kubernetes using kubeadm in centos
When i create the deployment using type Load Balancer in yaml file the External Ip is Pending for Kubernetes LB it is stuck in Pending state
NAME TYPE CLUSTER-IP EXTERNAL-IP …

J Jedidiah
- 151
- 1
- 1
- 4
10
votes
1 answer
How to resolve pod hostnames from other pods?
I have 2 pods running on 2 nodes, each pod runs in different node.
These nodes are on the same subnet and can TCP/UDP/ICMP themselves.
These pods got some hostnames, ie:
drill-staging-75cddd789-kbzsq
drill-staging-75cddd789-amsrj
From pod…

rudolfdobias
- 1,778
- 3
- 17
- 40
8
votes
2 answers
Accessing kubernetes dashboard gives Error trying to reach service: 'dial tcp 10.44.0.2:8443: connect: connection refused'
I used kubernetes hard way and managed to deploy a cluster successfully with kubernetes 1.18.6
I used vmware and kubernetes 1.18.6. I deployed metric-server and kubernets dashboard
I used this command --> …

AMendis
- 1,346
- 4
- 18
- 34
6
votes
5 answers
How can I isolate pods in namespace using NetworkPolicy without disabling external traffic to Kubernetes pods
I am trying to isolate my pods in namespace from other namespaces. I have tried to create a NetworkPolicy:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-from-other-namespaces
spec:
podSelector:
matchLabels:
…

Pratheesh
- 565
- 4
- 19
5
votes
0 answers
minikube start fails with "libmachine: Error dialing TCP: dial tcp 10.43.239.243:49167: connect: no route to host" error inside docker in docker
minikube start fails with error libmachine: Error dialing TCP: dial tcp 10.43.239.243:49167: connect: no route to host when run in the below setup:
k8s cluster (with containerd as container runtime) with 2 pods: one with docker client container,…

rok
- 9,403
- 17
- 70
- 126
5
votes
1 answer
Kubernetes nodeport not visible as listening on host but service working
I have a service running on kubernetes exposed via nodeport like so:
test-service NodePort 100.100.246.5 30005:30005/TCP
That service is reachable from other nodes and is working properly; however, I…

thewooster
- 807
- 1
- 9
- 23
4
votes
1 answer
Within a k8s cluster Should I always call the Ingress Rule Or Node Port Service Name?
I have a number of restful services within our system
Some are our within the kubernetes cluster
Others are on legacy infrasture and are hosted on VM's
Many of our restful services make synchronous calls to each other (so not asynchronously using…

user3210699
- 197
- 1
- 2
- 8
4
votes
1 answer
GKE BackendConfig not working with customRequestHeaders
I have a nodejs application running on Google Kubernetes Engine (v1.20.8-gke.900)
I want to add custom header to get client's Region and lat long so I refer to this article and this one also and created below kubernetes config file, but when I am…

Raunak Gupta
- 10,412
- 3
- 58
- 97
3
votes
3 answers
What does "within the cluster" mean in the context of ClusterIP service?
I have a Kubernetes cluster with the followings:
A deployment of some demo web server
A ClusterIP service that exposes this deployment pods
Now, I have the cluster IP of the service:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)…

YoavKlein
- 2,005
- 9
- 38
3
votes
2 answers
How would I set up access to multiple Nodes with a single Service in kubernetes?
I am trying to set up access to Pods on multiple Nodes with a single Service yaml. The Pods all have the same label (say, label:app), but are distributed across several Nodes, instead of on a single Node.
As far as I know, I can set up a Service to…

asuprem
- 554
- 1
- 5
- 17
2
votes
1 answer
Kubernetes network policy blocks traffic between nodes on AKS
I am using Azure Kubernetes Service (AKS) and want to make sure pods inside a specific namespace can only receive ingress traffic from other pods in the same namespace.
I found this network policy to achieve this namespace isolation (from…

JNK
- 796
- 6
- 12
2
votes
2 answers
Kubernetes MetalLB External IP not reachable from browser
I have a nginx deployment with service type LoadBalancer.
I got a external IP which is accessible from master and worker node.
I am not able to access it from browser.
What am I missing?

Manmohan Rawat
- 51
- 3
2
votes
1 answer
Error "no Route matched with those values" with the Kong ingress controller
Attempting to connect to a Jupyter Lab container (ultimately other applications as well) running on a cloud managed Kubernetes service using Kong as the ingress controller. Receiving "no Route matched with those values" on the http response to…

jpjenk
- 459
- 2
- 8
- 14