mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Always create service account even rbac_enabled = false
This commit is contained in:
@@ -18,8 +18,3 @@ cilium_cpu_requests: 100m
|
||||
|
||||
# Optional features
|
||||
cilium_enable_prometheus: false
|
||||
|
||||
rbac_resources:
|
||||
- sa
|
||||
- clusterrole
|
||||
- clusterrolebinding
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
register: cilium_node_manifests
|
||||
when:
|
||||
- inventory_hostname in groups['kube-master']
|
||||
- rbac_enabled or item.type not in rbac_resources
|
||||
|
||||
- name: Cilium | Set CNI directory permissions
|
||||
file:
|
||||
|
||||
@@ -34,9 +34,7 @@ spec:
|
||||
prometheus.io/port: "9090"
|
||||
{% endif %}
|
||||
spec:
|
||||
{% if rbac_enabled %}
|
||||
serviceAccountName: cilium
|
||||
{% endif %}
|
||||
initContainers:
|
||||
- name: clean-cilium-state
|
||||
image: docker.io/library/busybox:1.28.4
|
||||
|
||||
Reference in New Issue
Block a user