Here is the full list of kubectl short names: kubectl Cheat Sheet You can find all the commands listed in this article in the one-page reference sheet below. Download the kubectl Command PDF and save it for fut
force delete pod: kubectl get pods | grep Terminating | awk '{print $1}' | xargs kubectl delete pod --force --grace-period=0 kubectl patch node prodca-kube-master -p '{"spec":{"unschedulable":true}}' kubectl cordon node1 kubectl uncordon node1 1.1 Common Commands 1.2 Check Performan...
source<(kubectl completion zsh) # 在 zsh 中设置当前 shell 的自动补全echo"if [ $commands[kubectl] ]; then source <(kubectl completion zsh); fi">> ~/.zshrc # 在您的 zsh shell 中永久的添加自动补全 Kubectl 上下文和配置 kubectl config view # 显示合并的 kubeconfig 配置。 # 同时使用多个 kub...