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.

124 questions
17
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,168
  • 26
  • 25
16
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
  • 544
  • 4
  • 14
10
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
  • 121
  • 2
6
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
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
  • 169
  • 1
  • 3
  • 7
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…
Ekevoo
  • 2,514
  • 1
  • 21
  • 31
5
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
  • 651
  • 7
  • 23
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,135
  • 2
  • 14
  • 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
  • 375
  • 4
  • 17
4
votes
1 answer

how does kubernetes guarantee reliability of kube proxy and kubelet?

If Kube proxy is down, the pods on a kubernetes node will not be able to communicate with the external world. Anything that Kubernetes does specially to guarantee the reliability of kube-proxy? Similarly, how does Kubernetes guarantee reliability…
yuyang
  • 1,189
  • 1
  • 11
  • 31
4
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
  • 169
  • 1
  • 3
  • 8
3
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
  • 913
  • 2
  • 13
  • 28
3
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)"…
3
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
  • 474
  • 5
  • 19
3
votes
1 answer

Kubernetes VIP address clarifications

I'm a bit confused by some of the Kubernetes documentation on virtual IPs: https://kubernetes.io/docs/concepts/services-networking/service/#the-gory-details-of-virtual-ips. Userspace As an example, consider the image processing application…
Nick
  • 173
  • 3
  • 9
1
2 3
8 9