mirror of https://github.com/kubernetes/kops.git
Default kubelet authorization-mode to Webhook for k8s 1.19+
This commit is contained in:
parent
7070c3c9b2
commit
d2e7e2a41d
|
|
@ -513,6 +513,10 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
|
|||
c.NodeLabels = nil
|
||||
}
|
||||
|
||||
if c.AuthorizationMode == "" && b.Cluster.IsKubernetesGTE("1.19") {
|
||||
c.AuthorizationMode = "Webhook"
|
||||
}
|
||||
|
||||
return &c, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue