From f2093f1da3112901e3a3846b4cd1b0225770392b Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Wed, 17 Jan 2018 22:07:17 -0500 Subject: [PATCH] Enable --external-cloud-volume-plugin/--provider-id for local-up-cluster See the following commit for more information about the --external-cloud-volume-plugin flag: https://github.com/kubernetes/kubernetes/pull/52371/commits/070a7b58237ad12582b3b2eff00877e48324ad66 We need this flag for EXTERNAL_CLOUD_PROVIDER flag to work properly with volume plugins Also add --provider-id defaulting to hostname as we seem to pick up the ip address otherwise causing problem with looking up the node in the cloud provider --- hack/local-up-cluster.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 46a24fb37b0..a8d2a24e130 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -608,6 +608,9 @@ function start_controller_manager { cloud_config_arg="--cloud-provider=${CLOUD_PROVIDER} --cloud-config=${CLOUD_CONFIG}" if [[ "${EXTERNAL_CLOUD_PROVIDER:-}" == "true" ]]; then cloud_config_arg="--cloud-provider=external" + cloud_config_arg+=" --external-cloud-volume-plugin=${CLOUD_PROVIDER}" + cloud_config_arg+=" --cloud-config=${CLOUD_CONFIG}" + cloud_config_arg+=" --provider-id=$(hostname)" fi CTLRMGR_LOG=${LOG_DIR}/kube-controller-manager.log