Merge pull request #88856 from yaseenhamdulay/patch-1

Create etcd user in cloud-init master.yaml rather than in configure-h…
This commit is contained in:
Kubernetes Prow Robot 2020-03-27 20:41:53 -07:00 committed by GitHub
commit c7abf44a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -445,9 +445,6 @@ function mount-master-pd {
mkdir -p "${mount_point}/srv/sshproxy"
ln -s -f "${mount_point}/srv/sshproxy" /etc/srv/sshproxy
if ! id etcd &>/dev/null; then
useradd -s /sbin/nologin -d /var/etcd etcd
fi
chown -R etcd "${mount_point}/var/etcd"
chgrp -R etcd "${mount_point}/var/etcd"
}

View File

@ -1,5 +1,11 @@
#cloud-config
users:
- name: etcd
homedir: /var/etcd
lock_passwd: true
ssh_redirect_user: true
write_files:
- path: /etc/systemd/system/kube-master-installation.service
permissions: 0644