Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create etcd user in cloud-init master.yaml rather than in configure-h… #88856

Merged
merged 2 commits into from Mar 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions cluster/gce/gci/configure-helper.sh
Expand Up @@ -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"
}
Expand Down
6 changes: 6 additions & 0 deletions cluster/gce/gci/master.yaml
@@ -1,5 +1,11 @@
#cloud-config

users:
- name: etcd
homedir: /var/etcd
lock_passwd: true
yaseenhamdulay marked this conversation as resolved.
Show resolved Hide resolved
ssh_redirect_user: true

write_files:
- path: /etc/systemd/system/kube-master-installation.service
permissions: 0644
Expand Down