Commit 77c13d6d authored by Andrew Lytvynov's avatar Andrew Lytvynov

Allow fetching bootstrap-kubeconfig from VM metadata

parent 0a567f09
...@@ -914,6 +914,9 @@ contexts: ...@@ -914,6 +914,9 @@ contexts:
name: service-account-context name: service-account-context
current-context: service-account-context current-context: service-account-context
EOF EOF
elif [[ "${FETCH_BOOTSTRAP_KUBECONFIG:-false}" == "true" ]]; then
echo "Fetching kubelet bootstrap-kubeconfig file from metadata"
get-metadata-value "instance/attributes/bootstrap-kubeconfig" >/var/lib/kubelet/bootstrap-kubeconfig
else else
echo "Fetching kubelet kubeconfig file from metadata" echo "Fetching kubelet kubeconfig file from metadata"
get-metadata-value "instance/attributes/kubeconfig" >/var/lib/kubelet/kubeconfig get-metadata-value "instance/attributes/kubeconfig" >/var/lib/kubelet/kubeconfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment