From 37d5b413d852dfcababf72430aa8734e71d297f6 Mon Sep 17 00:00:00 2001 From: Eamon Keane Date: Tue, 13 Mar 2018 22:31:07 +0000 Subject: [PATCH] added Azure Instance Metadata for POD_CIDR and updated to 1.9.4 --- docs/09-bootstrapping-kubernetes-workers.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/09-bootstrapping-kubernetes-workers.md b/docs/09-bootstrapping-kubernetes-workers.md index 505337e99..481f277c4 100644 --- a/docs/09-bootstrapping-kubernetes-workers.md +++ b/docs/09-bootstrapping-kubernetes-workers.md @@ -83,9 +83,11 @@ sudo mv kubectl kube-proxy kubelet /usr/local/bin/ ### Configure CNI Networking Create the `bridge` network configuration file replacing POD_CIDR with address retrieved initially from Azure VM tags: +(Note: The Azure Metadata Instance Service is used to retrieve the POD_CIDR tag for each worker. +https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/virtual-machines/windows/instance-metadata-service.md) ```shell -POD_CIDR="10.200.0.0/24" +POD_CIDR="$(echo $(curl --silent -H Metadata:true "http://169.254.169.254/metadata/instance/compute/tags?api-version=2017-08-01&format=text") | cut -d : -f2)" cat > 10-bridge.conf <