curl -sk https://localhost:10250/pods/- If
--anonymous-authis turned off, you will see a401 Unauthorizedresponse. - If
--anonymous-authistrueand--authorization-modeisWebhookyou'll see403 Forbiddenresponse with messageForbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy) - If
--anonymous-authistrueand--authorization-modeisAlwaysAllowyou'll see a list of pods.
curl -skv -X POST -H "X-Stream-Protocol-Version: v2.channel.k8s.io" -H "X-Stream-Protocol-Version: channel.k8s.io" "https://localhost:10250/exec/<namespace>/<pod name>/<container name>/?command=touch&command=hello_world&input=1&output=1&tty=1"This gives a 302 Found response on v1.9 but execing into the pod directly shows no evidence of the file being created. On v1.11 there was an Upgrade request required response - maybe TLS issue?
Edit /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
sudo systemctl daemon-reload
sudo systemctl restart kubelet.serviceOr, if the settings are in /var/lib/kubelet/config.yaml, edit the config file and then sudo systemctl restart kubelet.service.