fix-the-issue-of-miss-the-etcd-user (#9016)

This commit is contained in:
Kay Yan 2022-06-29 00:13:58 +08:00 committed by GitHub
parent e1f06dd406
commit d4de9d096f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -4,3 +4,8 @@ dependencies:
when: kube_token_auth
tags:
- 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)

View file

@ -23,3 +23,4 @@
owner: "{{ etcd_owner }}"
group: "{{ etcd_owner }}"
mode: 0700
when: etcd_deployment_type == "kubeadm"