Browse Source

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

pull/9042/head
Kay Yan 2 years ago
committed by GitHub
parent
commit
d4de9d096f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions
  1. 5
      roles/kubernetes/control-plane/meta/main.yml
  2. 1
      roles/kubernetes/control-plane/tasks/kubeadm-etcd.yml

5
roles/kubernetes/control-plane/meta/main.yml

@ -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)

1
roles/kubernetes/control-plane/tasks/kubeadm-etcd.yml

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