forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup kubelet.conf to point to kubelet-client-current.pem (kubernetes…
…-sigs#7347) c9c0c01 only fix the problem for new clusters Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
roles/kubernetes/control-plane/tasks/kubelet-fix-client-cert-rotation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters