mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Set 'auto restart' bit on VMs.
This commit is contained in:
@@ -79,6 +79,7 @@ gcloud compute instances create ${MASTER_NAME}\
|
|||||||
--image ${IMAGE} \
|
--image ${IMAGE} \
|
||||||
--tags ${MASTER_TAG} \
|
--tags ${MASTER_TAG} \
|
||||||
--no-scopes \
|
--no-scopes \
|
||||||
|
--restart-on-failure \
|
||||||
--metadata-from-file startup-script=${KUBE_TEMP}/master-start.sh &
|
--metadata-from-file startup-script=${KUBE_TEMP}/master-start.sh &
|
||||||
|
|
||||||
for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
||||||
@@ -96,6 +97,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
|
|||||||
--image ${IMAGE} \
|
--image ${IMAGE} \
|
||||||
--tags ${MINION_TAG} \
|
--tags ${MINION_TAG} \
|
||||||
--no-scopes \
|
--no-scopes \
|
||||||
|
--restart-on-failure \
|
||||||
--can-ip-forward \
|
--can-ip-forward \
|
||||||
--metadata-from-file startup-script=${KUBE_TEMP}/minion-start-${i}.sh &
|
--metadata-from-file startup-script=${KUBE_TEMP}/minion-start-${i}.sh &
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user