File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ EXTERNAL_CLOUD_PROVIDER_BINARY=${EXTERNAL_CLOUD_PROVIDER_BINARY:-""}
78
78
EXTERNAL_CLOUD_VOLUME_PLUGIN=${EXTERNAL_CLOUD_VOLUME_PLUGIN:- " " }
79
79
CLOUD_PROVIDER=${CLOUD_PROVIDER:- " " }
80
80
CLOUD_CONFIG=${CLOUD_CONFIG:- " " }
81
+ KUBELET_PROVIDER_ID=${KUBELET_PROVIDER_ID:- " $( hostname) " }
81
82
FEATURE_GATES=${FEATURE_GATES:- " AllAlpha=false" }
82
83
STORAGE_BACKEND=${STORAGE_BACKEND:- " etcd3" }
83
84
STORAGE_MEDIA_TYPE=${STORAGE_MEDIA_TYPE:- " application/vnd.kubernetes.protobuf" }
@@ -702,7 +703,7 @@ function start_kubelet {
702
703
if [[ " ${CLOUD_PROVIDER:- } " == " aws" ]]; then
703
704
cloud_config_arg+=(" --provider-id=$( curl http://169.254.169.254/latest/meta-data/instance-id) " )
704
705
else
705
- cloud_config_arg+=(" --provider-id=$( hostname ) " )
706
+ cloud_config_arg+=(" --provider-id=${KUBELET_PROVIDER_ID} " )
706
707
fi
707
708
fi
708
709
You can’t perform that action at this time.
0 commit comments