Skip to content

Commit

Permalink
Fix the Kubelet certificate short validity issue
Browse files Browse the repository at this point in the history
The default validity period is set to just 30 minutes, which is
just too short.

This patch increases the validity period to 10 years, to be the
same as the default validity period of the admin certificate.

Signed-off-by: Lev Veyde <[email protected]>
  • Loading branch information
lveyde committed Jan 13, 2019
1 parent 6880b3e commit 41772d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/asset/tls/kubeletcertkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (a *KubeletCertKey) Generate(dependencies asset.Parents) error {
Subject: pkix.Name{CommonName: "system:serviceaccount:openshift-machine-config-operator:node-bootstrapper", Organization: []string{"system:serviceaccounts:openshift-machine-config-operator"}},
KeyUsages: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
ExtKeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
Validity: ValidityThirtyMinutes,
Validity: ValidityTenYears,
}

return a.CertKey.Generate(cfg, kubeCA, "kubelet", DoNotAppendParent)
Expand Down

0 comments on commit 41772d0

Please sign in to comment.