Questions tagged [kube-proxy]

kube-proxy is a component of kubernetes that is responsible for `service` and load balance.

The Kubernetes network proxy runs on each node. This reflects services as defined in the Kubernetes API on each node and can do simple TCP,UDP stream forwarding or round robin TCP,UDP forwarding across a set of backends.

161 questions
21
votes
2 answers

How to manage persistent connections in kubernetes

In Kubernetes services talk to each other via a service ip. With iptables or something similar each TCP connection is transparently routed to one of the pods that are available for the called service. If the calling service is not closing the TCP…
deflomu
  • 596
  • 1
  • 4
  • 16
20
votes
1 answer

What does userspace mode means in kube-proxy's proxy mode?

kube-proxy has an option called --proxy-mode,and according to the help message, this option can be userspace or iptables.(See below) # kube-proxy -h Usage of kube-proxy: ... --proxy-mode="": Which proxy mode to use: 'userspace' (older, stable)…
ax003d
  • 3,278
  • 29
  • 26
12
votes
0 answers

Kube-proxy or ELB "delaying" packets of HTTP requests

We're running a web API app on Kubernetes (1.9.3) in AWS (set with KOPS). The app is a Deployment and represented by a Service (type: LoadBalancer) which is actually an ELB (v1) on AWS. This generally works - except that some packets (fragments of…
ArAr
  • 141
  • 3
10
votes
1 answer

How to find which mode kube-proxy is running in

By default, when no value is specified in the configuration, kube-proxy might be running in either iptables or userspace mode: --proxy-mode ProxyMode Which proxy mode to use: 'userspace' (older) or 'iptables' (faster) or 'ipvs' or 'kernelspace'…
ITChap
  • 4,057
  • 1
  • 21
  • 46
9
votes
2 answers

How to change kube-proxy config?

I've tried to change kube-proxy configMap and kube-proxy command to set metricsBindAddress but kubernetes resets these changes(without any warnings) after couple seconds. kubectl edit cm kube-proxy-config -n kube-system => add metricsBindAddress =>…
Suleiman
  • 1,003
  • 2
  • 15
  • 29
8
votes
1 answer

Implementing iptables rules on Kubernetes nodes

I would like to implement my own iptables rules before Kubernetes (kube-proxy) start doing it's magic and dynamically create rules based on services/pods running on the node. The kube-proxy is running in --proxy-mode=iptables. Whenever I tried to…
Luminance
  • 820
  • 1
  • 10
  • 24
7
votes
1 answer

Is there a way to enable IPVS proxy-mode on GKE cluster?

I want to try this new proxy mode and the various schedulers it has for some of our apps. So far I've been unable to find a way to change the default mode iptables to ipvs on GKE nodes. Everywere says to pass --proxy-mode=ipvs to kube-proxy, but…
6
votes
0 answers

Kubernetes pod in terminating state receiving traffic for long time

I have an application service running with 2 pods that are receiving traffic from another service in the Kubernetes cluster. I am facing an issue where my pods are getting terminated and not fulfilling the inflight requests. So to fix this I have…
6
votes
1 answer

Enable IPVS Mode in Kube Proxy on a ready Kubernetes Local Cluster

I want to enable the Kube-proxy mode to IPVS in the existing cluster. currently, it is running on IPtables. how can I change it to IPVS without affecting the existing workload? I have already installed all the required modules to enable it. Also, my…
Pert8S
  • 582
  • 3
  • 6
  • 21
6
votes
1 answer

Kubernetes kube-proxy mechanism

In Kubernetes, let’s say we have three pods, which are physically hosted on Node X, Y and Z. When I expose them as a service using ‘kubectl expose’, are all nodes in the cluster (in addition to X, Y and Z) configured the same way? Specifically,…
user3290431
  • 329
  • 2
  • 4
  • 7
5
votes
1 answer

Internet connectivity inside the pod of Kubernetes is not Working

Not able to connect to internet from inside the pod My system Spec Include : I have created a Kubernetes cluster using 2 system one acts as master the other as worker node . Operating System : NAME="Red Hat Enterprise Linux" VERSION="8.3 (Ootpa)"…
5
votes
1 answer

Enable access to Kubernetes Dashboard without kubectl proxy

If I move a relevant config file and run kubectl proxy it will allow me to access the Kubernetes dashboard through this URL: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ However if I try to access…
Liz Av
  • 2,864
  • 1
  • 25
  • 35
5
votes
2 answers

NodePort services not available on all nodes

I'm attempting to run a 3-node Kubernetes cluster. I have the cluster up and running sufficiently that I have services running on different nodes. Unfortunately, I don't seem to be able to get NodePort based services to work correctly (as I…
E. Wittle
  • 299
  • 2
  • 4
  • 11
5
votes
0 answers

New approach to configure kube-proxy's proxymode in GKE/Kubernetes?

I see a recent pull request was merged to remove the net.experimental.kubernetes.io/proxy-mode and net.beta.kubernetes.io/proxy-mode annotations. My application's reverse proxy servers currently work much better when the proxymode is set to…
kgx
  • 1,195
  • 3
  • 15
  • 26
5
votes
1 answer

kube-proxy in iptables mode is not working

I have Kubernetes: v.1.1.1 iptables v1.4.21 kernel: 4.2.0-18-generic which come with Ubuntu wily Networking is done via L2 VLAN terminated on switch no cloud provider what I do I'm experimenting with iptables mode for kube-proxy. I have enabled…
onorua
  • 385
  • 4
  • 18
1
2 3
10 11