kubernetes 系统命令

kubectl get endpoints kube-controller-manager -n kube-system -o yaml

ansible myhosts -m shell -a ‘systemctl status kube-controller-manager’ | grep -B 4 ago

kubectl describe endpoints -n kube-system

kubectl get csr | sed 1d | awk ‘{print }’ | xargs -i kubectl certificate approve {}

kubectl create clusterrolebinding kubelet-bootstrap –clusterrole=system:node-bootstrapper –user=kubelet-bootstrap

kubectl describe clusterrole system:controller:deployment-controller

kubectl get clusterrole|grep controller