kube-proxy

Definition

kube-proxy is a network component in Kubernetes that runs on each node and is responsible for maintaining network rules on nodes. It facilitates communication between services and pods by implementing a form of virtual IP for services. kube-proxy can operate in various modes, such as userspace, iptables, or IPVS, to manage traffic routing efficiently.

Secure Settings Example

apiVersion: v1
kind: ConfigMap
metadata:
  name: kube-proxy
  namespace: kube-system
data:
  config.conf: |
    apiVersion: kubeproxy.config.k8s.io/v1alpha1
    kind: KubeProxyConfiguration
    mode: "ipvs"
    ipvs:
      scheduler: "rr"
    featureGates:
      SupportIPVSProxyMode: true
    metricsBindAddress: "127.0.0.1:10249"

Insecure Settings Example

apiVersion: v1
kind: ConfigMap
metadata:
  name: kube-proxy
  namespace: kube-system
data:
  config.conf: |
    apiVersion: kubeproxy.config.k8s.io/v1alpha1
    kind: KubeProxyConfiguration
    mode: "userspace"
    metricsBindAddress: "0.0.0.0:10249"