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.yamlFinally restart the rke2-server service on all RKE2 server (master) nodes:
systemctl restart rke2-server
Don't forget to delete the old kube-proxy iptables rules on ALL nodes with
See https://docs.cilium.io/en/stable/network/kubernetes/kubeproxy-free/
It also maybe be necessary to restart all running pods on any node... or simply reboot the node.