This message was deleted.
# general
a
This message was deleted.
w
In
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
I do see
disable-kube-proxy: true
c
you’d need to restart the servers first, then the agents. That should have been done for you when you modified the cluster config via Rancher though.
🤔 1
w
Servers as in rke2-server? and agents as in rke2-agent? Not the hosts, and rancher-system-agent? I did try manually restarting rke2-server and rancher-system-agent, as well as rebooting nodes, but no luck. kube-proxy always comes back and adds the iptables rules.
c
that doesn’t sound right. What version of RKE2 are you using? Can you provide the output of
kubectl get node -o yaml | grep node-args
?
w
v1.30.3+rke2r1
and rancher v2.9
Copy code
<http://rke2.io/node-args|rke2.io/node-args>: '["server","--agent-token","********","--cluster-cidr","10.64.0.0/16","--cluster-dns","10.65.0.10","--cni","cilium","--disable","rke2-ingress-nginx","--disable","rke2-cilium","--disable-kube-proxy","true","--etcd-expose-metrics","true","--etcd-snapshot-retention","5","--etcd-snapshot-schedule-cron","0
      <http://rke2.io/node-args|rke2.io/node-args>: '["server","--agent-token","********","--cluster-cidr","10.64.0.0/16","--cluster-dns","10.65.0.10","--cni","cilium","--disable","rke2-ingress-nginx","--disable","rke2-cilium","--disable-kube-proxy","true","--etcd-expose-metrics","true","--etcd-snapshot-retention","5","--etcd-snapshot-schedule-cron","0
      <http://rke2.io/node-args|rke2.io/node-args>: '["server","--agent-token","********","--cluster-cidr","10.64.0.0/16","--cluster-dns","10.65.0.10","--cni","cilium","--disable","rke2-ingress-nginx","--disable","rke2-cilium","--disable-kube-proxy","true","--etcd-expose-metrics","true","--etcd-snapshot-retention","5","--etcd-snapshot-schedule-cron","0
c
That should work… you could try deleting the kube-proxy static pod manifest from /var/lib/rancher/rke2/agent/pod-manifests/ but that shouldn’t be necessary if you start with --disable-kube-proxy
let me know if that works… if so we can open an issue and try to figure out what’s going on.
w
This seems to be working. Thanks!
142 Views