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.
Kubelet csr approver (kubernetes-sigs#9877)
* chore(helm-apps): fix README example README shows a non-working example according to the specs for this role. * Add support for kubelet-csr-approver Co-Authored-By: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * Add tests for kubelet-csr-approver Co-Authored-By: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * Add Documentation for Kubelet CSR Approver Co-Authored-By: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Co-authored-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
- Loading branch information
1 parent
9a72de5
commit 07d45e6
Showing
13 changed files
with
94 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,3 @@ | ||
--- | ||
dependencies: | ||
- role: kubernetes-apps/helm |
12 changes: 12 additions & 0 deletions
12
roles/kubernetes-apps/kubelet-csr-approver/defaults/main.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,12 @@ | ||
--- | ||
kubelet_csr_approver_enabled: "{{ kubelet_rotate_server_certificates }}" | ||
kubelet_csr_approver_namespace: kube-system | ||
|
||
kubelet_csr_approver_repository_name: kubelet-csr-approver | ||
kubelet_csr_approver_repository_url: https://postfinance.github.io/kubelet-csr-approver | ||
kubelet_csr_approver_chart_ref: "{{ kubelet_csr_approver_repository_name }}/kubelet-csr-approver" | ||
kubelet_csr_approver_chart_version: 0.2.8 | ||
|
||
# Fill values override here | ||
# See upstream https://github.com/postfinance/kubelet-csr-approver | ||
kubelet_csr_approver_values: {} |
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,20 @@ | ||
--- | ||
dependencies: | ||
- role: helm-apps | ||
when: | ||
- inventory_hostname == groups['kube_control_plane'][0] | ||
- kubelet_csr_approver_enabled | ||
environment: | ||
http_proxy: "{{ http_proxy | default('') }}" | ||
https_proxy: "{{ https_proxy | default('') }}" | ||
release_common_opts: {} | ||
releases: | ||
- name: kubelet-csr-approver | ||
namespace: "{{ kubelet_csr_approver_namespace }}" | ||
chart_ref: "{{ kubelet_csr_approver_chart_ref }}" | ||
chart_version: "{{ kubelet_csr_approver_chart_version }}" | ||
wait: true | ||
values: "{{ kubelet_csr_approver_values }}" | ||
repositories: | ||
- name: "{{ kubelet_csr_approver_repository_name }}" | ||
url: "{{ kubelet_csr_approver_repository_url }}" |
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
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,11 @@ | ||
--- | ||
# Instance settings | ||
cloud_image: debian-11 | ||
mode: default | ||
|
||
# Kubespray settings | ||
kubelet_rotate_server_certificates: true | ||
kubelet_csr_approver_enabled: true | ||
kubelet_csr_approver_values: | ||
# Do not check DNS resolution in testing (not recommended in production) | ||
bypassDnsResolution: true |
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
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