-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 (#7347)
c9c0c01 only fix the problem for new clusters Signed-off-by: Etienne Champetier <e.champetier@ateme.com> (cherry picked from commit 14b63ed) Conflicts: roles/kubernetes/master/tasks/kubelet-fix-client-cert-rotation.yml
- Loading branch information
1 parent
0ea4328
commit c22915a
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/master/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