File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -525,3 +525,5 @@ WINDOWS_NODE_TAINTS="${WINDOWS_NODE_TAINTS:-node.kubernetes.io/os=win1809:NoSche
525
525
GCE_PRIVATE_CLUSTER=" ${KUBE_GCE_PRIVATE_CLUSTER:- false} "
526
526
527
527
ETCD_LISTEN_CLIENT_IP=0.0.0.0
528
+
529
+ GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA=true
Original file line number Diff line number Diff line change @@ -3017,6 +3017,11 @@ function check-cluster() {
3017
3017
3018
3018
# ensures KUBECONFIG is set
3019
3019
get-kubeconfig-basicauth
3020
+
3021
+ if [[ ${GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA:- } == " true" ]]; then
3022
+ gcloud compute instances add-metadata " ${MASTER_NAME} " --zone=" ${ZONE} " --metadata-from-file=" kubeconfig=${KUBECONFIG} " || true
3023
+ fi
3024
+
3020
3025
echo
3021
3026
echo -e " ${color_green} Kubernetes cluster is running. The master is running at:"
3022
3027
echo
You can’t perform that action at this time.
0 commit comments