mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
allow enabling kubelet serving certificate rotation via flag
This commit is contained in:
parent
67e7d4c68f
commit
ce51c76b97
@ -489,6 +489,7 @@ func AddKubeletConfigFlags(mainfs *pflag.FlagSet, c *kubeletconfig.KubeletConfig
|
|||||||
"If --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key "+
|
"If --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key "+
|
||||||
"are generated for the public address and saved to the directory passed to --cert-dir.")
|
"are generated for the public address and saved to the directory passed to --cert-dir.")
|
||||||
fs.StringVar(&c.TLSPrivateKeyFile, "tls-private-key-file", c.TLSPrivateKeyFile, "File containing x509 private key matching --tls-cert-file.")
|
fs.StringVar(&c.TLSPrivateKeyFile, "tls-private-key-file", c.TLSPrivateKeyFile, "File containing x509 private key matching --tls-cert-file.")
|
||||||
|
fs.BoolVar(&c.ServerTLSBootstrap, "rotate-server-certificates", c.ServerTLSBootstrap, "<Warning: alpha feature> Auto request and rotate the kubelet serving certificates by requesting new certificates from the kube-apiserver when the certificate expiration approaches. Requires the RotateKubeletServerCertificate feature gate to be enabled.")
|
||||||
|
|
||||||
tlsCipherPossibleValues := flag.TLSCipherPossibleValues()
|
tlsCipherPossibleValues := flag.TLSCipherPossibleValues()
|
||||||
fs.StringSliceVar(&c.TLSCipherSuites, "tls-cipher-suites", c.TLSCipherSuites,
|
fs.StringSliceVar(&c.TLSCipherSuites, "tls-cipher-suites", c.TLSCipherSuites,
|
||||||
|
Loading…
Reference in New Issue
Block a user