-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconfigure a Node's Kubelet in a Live Cluster does not work #67580
Comments
/sig node |
If you change the kubelet configuration with a ConfigMap, the changes will not come to the kubelet command line flags, so you can't see the changes with The command line flags can be used to override the values set form the ConfigMap. However, if you have set parameters using |
@ipuustin thank you |
@ipuustin I have the same issue. |
@workhardcc I think the best way to debug this is to check the kubelet logs with |
I forgot add |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Reconfigure a Node's Kubelet in a Live Cluster does not work
1.kubectl proxy --port=8001 &
2.NODE_NAME="the-name-of-the-node-you-are-reconfiguring"; curl -sSL "http://localhost:8001/api/v1/nodes/${NODE_NAME}/proxy/configz" | jq '.kubeletconfig|.kind="KubeletConfiguration"|.apiVersion="kubelet.config.k8s.io/v1beta1"' > kubelet_configz_${NODE_NAME}
ps aux | grep kubelet
3.edit the file
change authorization.mode="Webhook"
4.kubectl -n kube-system create configmap my-node-config --from-file=kubelet=kubelet_configz_${NODE_NAME} --append-hash -o yaml
it will produce a configmap copy it name.
5.kubectl edit node 192.168.191.128
paste the config info to it
What you expected to happen:
ps aux | grep kubelet should see the parameter --authorization-mode=Webhook
Environment:
kubectl version
):uname -a
):rancher2.0.7
The text was updated successfully, but these errors were encountered: