mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Certificate rotation for kubelet server certs.
Replaces the current kubelet server side self signed certs with certs signed by the Certificate Request Signing API on the API server. Also renews expiring kubelet server certs as expiration approaches.
This commit is contained in:
@@ -134,6 +134,9 @@ func ListenAndServeKubeletServer(
|
||||
}
|
||||
if tlsOptions != nil {
|
||||
s.TLSConfig = tlsOptions.Config
|
||||
// Passing empty strings as the cert and key files means no
|
||||
// cert/keys are specified and GetCertificate in the TLSConfig
|
||||
// should be called instead.
|
||||
glog.Fatal(s.ListenAndServeTLS(tlsOptions.CertFile, tlsOptions.KeyFile))
|
||||
} else {
|
||||
glog.Fatal(s.ListenAndServe())
|
||||
|
||||
Reference in New Issue
Block a user