Skip to content

Commit 71a3230

Browse files
authored
Fix: kubelet-csr-approver moves to regular application installation (#12141)
This commit fixed the process to ensure that CCM is installed first to avoid the chicken-and-egg problem. Signed-off-by: ChengHao Yang <[email protected]>
1 parent 5e5e509 commit 71a3230

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

playbooks/cluster.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
- { role: kubernetes/node-label, tags: node-label }
5151
- { role: kubernetes/node-taint, tags: node-taint }
5252
- { role: network_plugin, tags: network }
53-
- { role: kubernetes-apps/kubelet-csr-approver, tags: kubelet-csr-approver }
5453

5554
- name: Install Calico Route Reflector
5655
hosts: calico_rr

roles/kubernetes-apps/meta/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ dependencies:
104104
tags:
105105
- gateway_api
106106

107+
- role: kubernetes-apps/kubelet-csr-approver
108+
when:
109+
- kubelet_csr_approver_enabled
110+
- inventory_hostname == groups['kube_control_plane'][0]
111+
tags:
112+
- kubelet-csr-approver
113+
107114
- role: kubernetes-apps/metallb
108115
when:
109116
- metallb_enabled

0 commit comments

Comments
 (0)