2021-03-09 15:55:00 +08:00
|
|
|
---
|
|
|
|
- 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'
|
2024-08-28 13:30:56 +08:00
|
|
|
backup: true
|
2021-03-09 15:55:00 +08:00
|
|
|
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'
|
2024-08-28 13:30:56 +08:00
|
|
|
backup: true
|
2021-03-09 15:55:00 +08:00
|
|
|
notify:
|
|
|
|
- "Master | reload kubelet"
|