Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
add check for etcd user
Browse files Browse the repository at this point in the history
  • Loading branch information
CecileRobertMichon committed Feb 6, 2018
1 parent 84379bf commit ce3098f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parts/k8s/kubernetesmastercustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ if [[ ! -z "${MASTER_NODE}" ]]; then
echo "executing master node provision operations"

useradd -U "etcd"
id "etcd"
if [[ $? -eq 1 ]]; then
echo "failed to add user etcd"
else
echo "etcd user exists"
fi

APISERVER_PRIVATE_KEY_PATH="/etc/kubernetes/certs/apiserver.key"
touch "${APISERVER_PRIVATE_KEY_PATH}"
Expand Down

0 comments on commit ce3098f

Please sign in to comment.