mirror of https://github.com/k3s-io/k3s
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
parent
bda841fa7b
commit
f2093f1da3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue