Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

How to disable Kube-Proxy in RKE2

Example use case: Running the Cilium CNI without any kube-proxy

On all RKE2 servers (master nodes), add the following configuration to your /etc/rancher/rke2/config.yaml file:

disable-kube-proxy: "true"

Now the important step: If you already had stared the RKE2 service before (without this flag and with kube-proxy enabled), ensure to also delete the kube-proxy.yaml static pod manifest:

rm -f /var/lib/rancher/rke2/agent/pod-manifests/kube-proxy.yaml

Finally restart the rke2-server service on all RKE2 server (master) nodes:

systemctl restart rke2-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment