Commands cheat sheet
Get shell on node with debug pod
kubectl debug node/<node-name> -it --image=<image name>kubectl debug --image=alpine --namespace=<namespace> node/<node-name> --attach=true --stdin=true --tty -- shNode taint NoSchedule
kubectl taint nodes node1 key1=value1:NoSchedulekubectl taint nodes node1 key1=value1:NoSchedule-Set editor for kubectl
export KUBE_EDITOR="nano"Example with creating admin user and getting token
sudo kubectl create serviceaccount k8sadmin -n kube-systemsudo kubectl create clusterrolebinding k8sadmin --clusterrole=cluster-admin --serviceaccount=kube-system:k8sadminLast updated