Skip to content

Commit 8cc5694

Browse files
authored
calico: update calico-kube-controller manifest (#12169)
1 parent fa6888d commit 8cc5694

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

roles/kubernetes-apps/policy_controller/calico/templates/calico-kube-controllers.yml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ spec:
3030
operator: Exists
3131
- key: node-role.kubernetes.io/control-plane
3232
effect: NoSchedule
33+
- key: node-role.kubernetes.io/master
34+
effect: NoSchedule
3335
{% if policy_controller_extra_tolerations is defined %}
3436
{{ policy_controller_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
3537
{% endif %}
@@ -59,6 +61,8 @@ spec:
5961
- /usr/bin/check-status
6062
- -r
6163
periodSeconds: 10
64+
securityContext:
65+
runAsNonRoot: true
6266
env:
6367
- name: LOG_LEVEL
6468
value: {{ calico_policy_controller_log_level }}
@@ -68,6 +72,8 @@ spec:
6872
- name: DATASTORE_TYPE
6973
value: kubernetes
7074
{% else %}
75+
- name: ENABLED_CONTROLLERS
76+
value: policy,namespace,serviceaccount,workloadendpoint,node
7177
- name: ETCD_ENDPOINTS
7278
value: "{{ etcd_access_addresses }}"
7379
- name: ETCD_CA_CERT_FILE

roles/kubernetes-apps/policy_controller/calico/templates/calico-kube-cr.yml.j2

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ rules:
1919
- watch
2020
- list
2121
- get
22-
- apiGroups:
23-
- ""
24-
resources:
25-
- nodes
26-
verbs:
27-
- get
28-
- apiGroups:
29-
- networking.k8s.io
30-
resources:
31-
- networkpolicies
32-
verbs:
33-
- watch
34-
- list
3522
{% elif calico_datastore == "kdd" %}
3623
# Nodes are watched to monitor for deletions.
3724
- apiGroups: [""]
@@ -67,6 +54,7 @@ rules:
6754
- blockaffinities
6855
- ipamblocks
6956
- ipamhandles
57+
- tiers
7058
verbs:
7159
- get
7260
- list

0 commit comments

Comments
 (0)