Skip to content

Commit

Permalink
use etcd args
Browse files Browse the repository at this point in the history
  • Loading branch information
CecileRobertMichon committed Feb 6, 2018
1 parent 5584d79 commit ccbff6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parts/k8s/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER
Wants=network-online.target
[Service]
Environment=DAEMON_ARGS=
Environment=ETCD_NAME=%H
Environment=ETCD_DATA_DIR=
Environment=ETCD_NAME={{WrapAsVerbatim "variables('masterVMNames')[copyIndex(variables('masterOffset'))]"}}
Environment=ETCD_DATA_DIR=/var/lib/etcddisk
EnvironmentFile=-/etc/default/%p
Type=notify
User=etcd
Expand Down Expand Up @@ -313,7 +313,7 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER
content: |
#!/bin/bash
retrycmd_if_failure() { retries=$1; shift; for i in $(seq 1 $retries); do ${@}; [ $? -eq 0 ] && break || sleep 5; done ; }
/bin/echo DAEMON_ARGS=--name "{{WrapAsVerbatim "variables('masterVMNames')[copyIndex(variables('masterOffset'))]"}}" --initial-advertise-peer-urls "{{WrapAsVerbatim "variables('masterEtcdPeerURLs')[copyIndex(variables('masterOffset'))]"}}" --listen-peer-urls "{{WrapAsVerbatim "variables('masterEtcdPeerURLs')[copyIndex(variables('masterOffset'))]"}}" --advertise-client-urls "{{WrapAsVerbatim "variables('masterEtcdClientURLs')[copyIndex(variables('masterOffset'))]"}}" --listen-client-urls "{{WrapAsVerbatim "concat(variables('masterEtcdClientURLs')[copyIndex(variables('masterOffset'))], ',http://127.0.0.1:', variables('masterEtcdClientPort'))"}}" --initial-cluster-token "k8s-etcd-cluster" --initial-cluster "{{WrapAsVerbatim "variables('masterEtcdClusterStates')[div(variables('masterCount'), 2)]"}} --data-dir "/var/lib/etcddisk"" --initial-cluster-state "new" | tee -a /etc/default/etcd
/bin/echo DAEMON_ARGS= --initial-advertise-peer-urls "{{WrapAsVerbatim "variables('masterEtcdPeerURLs')[copyIndex(variables('masterOffset'))]"}}" --listen-peer-urls "{{WrapAsVerbatim "variables('masterEtcdPeerURLs')[copyIndex(variables('masterOffset'))]"}}" --advertise-client-urls "{{WrapAsVerbatim "variables('masterEtcdClientURLs')[copyIndex(variables('masterOffset'))]"}}" --listen-client-urls "{{WrapAsVerbatim "concat(variables('masterEtcdClientURLs')[copyIndex(variables('masterOffset'))], ',http://127.0.0.1:', variables('masterEtcdClientPort'))"}}" --initial-cluster-token "k8s-etcd-cluster" --initial-cluster "{{WrapAsVerbatim "variables('masterEtcdClusterStates')[div(variables('masterCount'), 2)]"}}" --initial-cluster-state "new" | tee -a /etc/default/etcd
/opt/azure/containers/mountetcd.sh
sudo /bin/chown -R etcd:etcd /var/lib/etcddisk
systemctl stop etcd-member
Expand Down

0 comments on commit ccbff6d

Please sign in to comment.