GCE/Windows: add cluster-location to instance metadata

This will be used by stackdriver to annotate the logs.
k3s-v1.15.3
Yu-Ju Hong 2019-04-17 16:50:37 -07:00
parent 18b4e1b84c
commit 05074e9dde
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
function get-windows-node-instance-metadata-from-file {
local metadata=""
metadata+="cluster-name=${KUBE_TEMP}/cluster-name.txt,"
metadata+="cluster-location=${KUBE_TEMP}/cluster-location.txt,"
metadata+="kube-env=${KUBE_TEMP}/windows-node-kube-env.yaml,"
metadata+="kubelet-config=${KUBE_TEMP}/windows-node-kubelet-config.yaml,"
# To get startup script output run "gcloud compute instances