Skip to content
Snippets Groups Projects
Unverified Commit 14b63ede authored by Etienne Champetier's avatar Etienne Champetier Committed by GitHub
Browse files

Fixup kubelet.conf to point to kubelet-client-current.pem (#7347)


c9c0c01d only fix the problem for new clusters

Signed-off-by: default avatarEtienne Champetier <e.champetier@ateme.com>
parent b07c5966
No related branches found
No related tags found
No related merge requests found
---
- name: Fixup kubelet client cert rotation 1/2
lineinfile:
path: "{{ kube_config_dir }}/kubelet.conf"
regexp: '^ client-certificate-data: '
line: ' client-certificate: /var/lib/kubelet/pki/kubelet-client-current.pem'
backup: yes
notify:
- "Master | reload kubelet"
- name: Fixup kubelet client cert rotation 2/2
lineinfile:
path: "{{ kube_config_dir }}/kubelet.conf"
regexp: '^ client-key-data: '
line: ' client-key: /var/lib/kubelet/pki/kubelet-client-current.pem'
backup: yes
notify:
- "Master | reload kubelet"
......@@ -62,3 +62,7 @@
- name: Include kubeadm secondary server apiserver fixes
include_tasks: kubeadm-fix-apiserver.yml
- name: Include kubelet client cert rotation fixes
include_tasks: kubelet-fix-client-cert-rotation.yml
when: kubelet_rotate_certificates
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment