mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Re-add --cloud-provider=external kubelet arg
The cloud-provider arg is deprecated and cannot be set to anything other than external, but must still be used or node addresses are not set properly. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
a5a0e8fde2
commit
29397b4e68
@ -150,6 +150,10 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
argsMap["register-with-taints"] = strings.Join(cfg.NodeTaints, ",")
|
||||
}
|
||||
|
||||
if !cfg.DisableCCM {
|
||||
argsMap["cloud-provider"] = "external"
|
||||
}
|
||||
|
||||
if ImageCredProvAvailable(cfg) {
|
||||
logrus.Infof("Kubelet image credential provider bin dir and configuration file found.")
|
||||
argsMap["feature-gates"] = util.AddFeatureGate(argsMap["feature-gates"], "KubeletCredentialProviders=true")
|
||||
|
@ -116,6 +116,10 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
argsMap["register-with-taints"] = strings.Join(cfg.NodeTaints, ",")
|
||||
}
|
||||
|
||||
if !cfg.DisableCCM {
|
||||
argsMap["cloud-provider"] = "external"
|
||||
}
|
||||
|
||||
if ImageCredProvAvailable(cfg) {
|
||||
logrus.Infof("Kubelet image credential provider bin dir and configuration file found.")
|
||||
argsMap["feature-gates"] = util.AddFeatureGate(argsMap["feature-gates"], "KubeletCredentialProviders=true")
|
||||
|
Loading…
Reference in New Issue
Block a user