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

How to configure kube-proxy to serve from local node only

I need to configure kube-proxy to server from the pods running on the current node only , and avoid for the connections to bounce around different nodes.
Ijaz Ahmad
  • 11,198
  • 9
  • 53
  • 73
1
vote
1 answer

Kubernetes - Connection tracking does not mangle packages back to the original destination IP (DNAT)

We have a Kubernetes cluster setup using AWS EC2 instances which we created using KOPS. We are experiencing problems with internal pod communication through kubernetes services (which will load balance traffic between destination pods). The problem…
1
vote
1 answer

How to update/Patch Kube-proxy config?

I am using Rancher for Kubernetes Installation and cluster Management. For fixing issue related to IP Tables I need to update the cluster-cidr attribute in Kubeproxy config (https://github.com/kubernetes/kubernetes/issues/36835 ), I am not sure how…
Karthik
  • 744
  • 2
  • 7
  • 23
1
vote
1 answer

kube-proxy does not update iptables

I have had a running k8s cluster for 2 days and then it has started behaving strangely. My specific question is on kube-proxy. kube-proxy is not updating iptables. From kube-proxy logs, I can see it failed to connect to kubernetes-apiserver (in my…
Hemanth
  • 315
  • 1
  • 8
1
vote
2 answers

Using Service's ClusterIP Address inside POD

I am using Kubernetes Service of type Cluster IP, which will expose a deployment. In my container I want to use the Service IP (cluster IP). Is there any way I can get the IP Address inside the Pod/container? Is it possible to get the cluster IP…
Karthik
  • 744
  • 2
  • 7
  • 23
1
vote
1 answer

How to delete iptables rules added by kube-proxy?

I want to manually delete iptables rules for debugging. I have several rules created by kube-proxy based on service nettools: # kubectl get endpoints nettools NAME ENDPOINTS AGE nettools 172.16.27.138:7493 1h And its iptables…
Haoyuan Ge
  • 3,379
  • 3
  • 24
  • 40
1
vote
1 answer

iptables rules deleted after reboot on Kubernetes nodes

After manually adding some iptables rules and rebooting the machine, all of the rules are gone (no matter the type of rule ). ex. $ iptables -A FUGA-INPUT -p tcp --dport 23 -j DROP $ iptables -L Chain INPUT (policy ACCEPT) target prot opt…
Luminance
  • 820
  • 1
  • 10
  • 24
1
vote
1 answer

Kubernetes (connection)-drain node with local persistent storage

We use local persistent storage as storage backend for SOLR pods. The pods are redundantly scheduled to multiple kubernetes nodes. If one of the nodes go down there are always enough instances on other nodes. How can we drain these nodes (without…
MDK
  • 11
  • 1
1
vote
1 answer

Failed to make sure ip set: &{{KUBE-NODE-PORT-TCP ...} exist, error: error creating ipset KUBE-NODE-PORT-TCP, error: exit status 2

kubernetes version: v1.11.0 I run kube-proxy with ipvs mode, got this errors: 7月 03 21:55:08 docker02 kube-proxy[13003]: E0703 21:55:08.316098 13003 ipset.go:156] Failed to make sure ip set: &{{KUBE-NODE-PORT-TCP bitmap:port inet 1024 65536…
HikoQiu
  • 11
  • 3
1
vote
0 answers

AWS Kubernetes cluster using KOPS - Kube-dns and Kube-proxy goes down

I have created a kubernetes cluster using KOPS on AWS cloud. The cluster gets created without any issues and runs fine for 10-15 hrs. I have deployed SAP Vora2.1 on this cluster. However generally after 12-15 hrs the KOPS cluster gets into problems…
1
vote
2 answers

How to run kube-proxy on master node?

I use k8s engine on google cloud. I want to run kube-proxy on master node in order to acess my pods through services with NodePort type via master node. How to run kube-proxy on master node? I use 1.8.10-gke.0 k8s version.
1
vote
0 answers

canal and proxy pods stuck in ContainerCreating on windows node in kubernetes cluster

We are trying to add a windows node to our centos-based kubernetes cluster with canal pod network manager. To do so, we built a windows server 1709 VM and followed this guide…
1
vote
1 answer

How to push changes to Kubernestes Kube-proxy?

I'm new to Kubernetes development, and I have a task to change some features in Kuberenetes services. I have the Kubernetes local cluster, and also I have a testbed consisting of 4 RPI's, My first changes were done over Kubectl, and what I have…
elia
  • 239
  • 3
  • 16
1
vote
2 answers

Does Kube-proxy come with standard k8s installation on ubuntu or is it separate package?

I am trying to install kubernetes on ubuntu 16.04. I am able to install other kubernetes components but i dont know if kube-proxy is installed? Should i get separate binary package for it or does it come prepackaged with kubernetes apt-get…
Ashish
  • 11
  • 1
  • 2
1
vote
1 answer

how to avoid snat when using service type clusterip on kubernetes?

For every service in k8s cluster, kubernetes do snat for request packets. The iptables rules are: -A KUBE-SERVICES ! -s 10.254.0.0/16 -d 10.254.186.26/32 -p tcp -m comment --comment "policy-demo/nginx: cluster IP" -m tcp --dport 80 -j…
duye
  • 155
  • 1
  • 3
  • 9