Skip to content

K8s

alias k=kubectl
k cluster-info
k config view
k get componentstatuses

k config get-context
k get nodes 
k get pods -A -o wide
k get events --namespace=kube-system
kubeadm token create --print-join-command
k get endpoints -A
k get EndpointSlice -A

Remove all 'Evicted' pods

kubectl get pods -A | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs -L1 kubectl delete pod