#  强制删除pod
kubectl get pods --all-namespaces | grep Terminating | awk '{print $1 " " $2}' | xargs -n 2 kubectl delete pod --grace-period=0 --force --namespace

# 创建crd报错 metadata.annotations: Too long: must have at most 262144 bytes使用
kubectl apply -f xxx --server-side

创建资源

kubectl create deployment web  --image=nginx -o yaml --dry-run > my1.yaml
kubectl create service nodeport NAME [--tcp=port:targetPort] [--dry-run=server|client|none] [options]
kubectl create configmap my-config --from-file=key1=/path/to/bar/file1.txt --from-file=key2=/path/to/bar/file2.txt
kubectl create configmap my-config --from-file=path/to/bar