Merge pull request #69884 from liggitt/self-sign-in-memory

Allow components to generate certificates in-memory
This commit is contained in:
k8s-ci-robot
2018-10-30 11:03:29 -07:00
committed by GitHub
4 changed files with 44 additions and 16 deletions

View File

@@ -190,7 +190,8 @@ func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error) {
s.Authorization.RemoteKubeConfigFileOptional = true
s.Authorization.AlwaysAllowPaths = []string{"/healthz"}
s.SecureServing.ServerCert.CertDirectory = "/var/run/kubernetes"
// Set the PairName but leave certificate directory blank to generate in-memory by default
s.SecureServing.ServerCert.CertDirectory = ""
s.SecureServing.ServerCert.PairName = "kube-controller-manager"
s.SecureServing.BindPort = ports.KubeControllerManagerPort