`kubectl debug` hangs on 1.20 with feature gate enabled `kubectl debug` hangs on 1.20 with feature gate enabled kubernetes kubernetes

`kubectl debug` hangs on 1.20 with feature gate enabled


The solution turned out to be that while I enabled the feature gate on the master node (/etc/kubernetes/manifests/kube-apiserver.yaml), the change didn't propogate to the worker nodes in the cluster (/var/lib/kubelet/config.yaml). Manually applying the changes to the worker nodes and restarting kubelet (systemctl restart kubelet.service) resolved the issue.