fix-the-issue-of-miss-the-etcd-user (#9016)
This commit is contained in:
parent
e1f06dd406
commit
d4de9d096f
2 changed files with 6 additions and 0 deletions
|
@ -4,3 +4,8 @@ dependencies:
|
||||||
when: kube_token_auth
|
when: kube_token_auth
|
||||||
tags:
|
tags:
|
||||||
- k8s-secrets
|
- k8s-secrets
|
||||||
|
- role: adduser
|
||||||
|
user: "{{ addusers.etcd }}"
|
||||||
|
when:
|
||||||
|
- etcd_deployment_type == "kubeadm"
|
||||||
|
- not (ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk", "ClearLinux"] or is_fedora_coreos)
|
||||||
|
|
|
@ -23,3 +23,4 @@
|
||||||
owner: "{{ etcd_owner }}"
|
owner: "{{ etcd_owner }}"
|
||||||
group: "{{ etcd_owner }}"
|
group: "{{ etcd_owner }}"
|
||||||
mode: 0700
|
mode: 0700
|
||||||
|
when: etcd_deployment_type == "kubeadm"
|
||||||
|
|
Loading…
Reference in a new issue