mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 06:59:25 +00:00
pass authorization-kubeconfig and authentication-kubeconfig for 1.22
controller manager must start with proper authorization and authentication kubeconfig in args starting 1.22. k8s 1.22 has disabled insecure serving for kube controller manager.
This commit is contained in:
@@ -381,6 +381,8 @@ func (c *Cluster) BuildKubeControllerProcess(host *hosts.Host, serviceOptions v3
|
||||
|
||||
if matchedRange {
|
||||
Binds = util.RemoveZFromBinds(Binds)
|
||||
CommandArgs["authentication-kubeconfig"] = CommandArgs["kubeconfig"]
|
||||
CommandArgs["authorization-kubeconfig"] = CommandArgs["kubeconfig"]
|
||||
}
|
||||
|
||||
for arg, value := range c.Services.KubeController.ExtraArgs {
|
||||
@@ -818,6 +820,8 @@ func (c *Cluster) BuildSchedulerProcess(host *hosts.Host, serviceOptions v3.Kube
|
||||
|
||||
if matchedRange {
|
||||
Binds = util.RemoveZFromBinds(Binds)
|
||||
CommandArgs["authentication-kubeconfig"] = CommandArgs["kubeconfig"]
|
||||
CommandArgs["authorization-kubeconfig"] = CommandArgs["kubeconfig"]
|
||||
}
|
||||
|
||||
Binds = append(Binds, c.Services.Scheduler.ExtraBinds...)
|
||||
|
Reference in New Issue
Block a user