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:
Jacob Simpson
2017-02-17 11:32:41 -08:00
parent 9801a7da42
commit 4c22e6bc6a
6 changed files with 145 additions and 10 deletions

View File

@@ -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())