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:
070a7b5823

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
pull/6/head
Davanum Srinivas 2018-01-17 22:07:17 -05:00
parent bda841fa7b
commit f2093f1da3
1 changed files with 3 additions and 0 deletions

View File

@ -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