Skip to content

Commit

Permalink
Merge pull request #9718 from johngmyers/kubelet-webhook
Browse files Browse the repository at this point in the history
Default kubelet authorization-mode to Webhook for k8s 1.19+
  • Loading branch information
k8s-ci-robot authored Aug 9, 2020
2 parents 2a3d561 + d2e7e2a commit 33c492d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodeup/pkg/model/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 33c492d

Please sign in to comment.