problem description
create bootstrap role to give permission to connect apiserver request signature error, modified as follows:
[root@localhost kubeconfig]# kubectl create clusterrolebinding kubelet-bootstrap –clusterrole=system:node-bootstrapper –user=kubelet-bootstrap
Error from server (AlreadyExists): Clusterrolebindings, rbac authorization. K8s. IO “kubelet – the bootstrap” already exists p>
problem analysis
this is because an incorrect signature has been created previously, the signature is occupied, and the occupied signature
needs to be deletedproblem solved
1. Delete signature
kubectl delete clusterrolebindings kubelet-bootstrap
2, recreate successfully
[root@localhost kubeconfig]# kubectl create clusterrolebinding kubelet-bootstrap –clusterrole=system:node-bootstrapper –user=kubelet-bootstrap
clusterrolebinding.rbac.authorization.k8s.io/kubelet-bootstrap created