mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-15 10:10:03 -03:30
enable kubelet client certificate rotation (#4081)
* enable kubelet client certificate rotation * change to variable kubelet_rotate_certificates
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
a8dd69cf17
commit
740d8b0a26
@@ -28,6 +28,9 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
||||
{% endif %}
|
||||
--enforce-node-allocatable={{ kubelet_enforce_node_allocatable }} \
|
||||
--client-ca-file={{ kube_cert_dir }}/ca.crt \
|
||||
{% if kubelet_rotate_certificates %}
|
||||
--rotate-certificates \
|
||||
{% endif %}
|
||||
--pod-manifest-path={{ kube_manifest_dir }} \
|
||||
{% if kube_version is version('v1.12.0', '<') %}
|
||||
--cadvisor-port={{ kube_cadvisor_port }} \
|
||||
|
||||
@@ -308,6 +308,10 @@ kubelet_authentication_token_webhook: true
|
||||
# When enabled, access to the kubelet API requires authorization by delegation to the API server
|
||||
kubelet_authorization_mode_webhook: false
|
||||
|
||||
# kubelet uses certificates for authenticating to the Kubernetes API
|
||||
# Automatically generate a new key and request a new certificate from the Kubernetes API as the current certificate approaches expiration
|
||||
kubelet_rotate_certificates: true
|
||||
|
||||
## v1.11 feature
|
||||
feature_gate_v1_11:
|
||||
- "PersistentLocalVolumes={{ local_volume_provisioner_enabled | string }}"
|
||||
|
||||
Reference in New Issue
Block a user