mirror of https://github.com/easzlab/kubeasz.git
fix kube-apiserver 访问 kubelet的权限
parent
ebf4f1e507
commit
64d177aaea
|
@ -143,7 +143,7 @@
|
|||
run_once: true
|
||||
|
||||
- name: 创建user:kubernetes角色绑定
|
||||
command: "{{ base_dir }}/bin/kubectl create clusterrolebinding kubernetes-crb --clusterrole=cluster-admin --user=kubernetes"
|
||||
command: "{{ base_dir }}/bin/kubectl create clusterrolebinding kubernetes-crb --clusterrole=system:kubelet-api-admin --user=kubernetes"
|
||||
run_once: true
|
||||
when: "'notfound' in crb_info.stdout"
|
||||
connection: local
|
||||
|
|
Loading…
Reference in New Issue