Skip to content

Commit 2780060

Browse files
committed
kubeadm: change SystemPrivilegedGroup in apiserve-kubelet-client.crt
The component connection between kube-apiserver and kubelet does not require the "O" field on the Subject to be set to the "system:masters" privileged group. It can be a less privileged group like "kubeadm:cluster-admins". Change the group in the apiserve-kubelet-client certificate specification. This cert is passed to --kubelet-client-certificate.
1 parent 5ce0bd9 commit 2780060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/phases/certs/certlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func KubeadmCertKubeletClient() *KubeadmCert {
291291
config: pkiutil.CertConfig{
292292
Config: certutil.Config{
293293
CommonName: kubeadmconstants.APIServerKubeletClientCertCommonName,
294-
Organization: []string{kubeadmconstants.SystemPrivilegedGroup},
294+
Organization: []string{kubeadmconstants.ClusterAdminsGroupAndClusterRoleBinding},
295295
Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
296296
},
297297
},

0 commit comments

Comments
 (0)