calico: update calico-kube-controller manifest (#12481)

Co-authored-by: Cyclinder Kuo <kuocyclinder@gmail.com>
This commit is contained in:
k8s-infra-cherrypick-robot
2025-08-28 00:21:10 -07:00
committed by GitHub
parent 7cb6b07c44
commit f3354ce2c9
2 changed files with 7 additions and 13 deletions

View File

@@ -30,6 +30,8 @@ spec:
operator: Exists operator: Exists
- key: node-role.kubernetes.io/control-plane - key: node-role.kubernetes.io/control-plane
effect: NoSchedule effect: NoSchedule
- key: node-role.kubernetes.io/master
effect: NoSchedule
{% if policy_controller_extra_tolerations is defined %} {% if policy_controller_extra_tolerations is defined %}
{{ policy_controller_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }} {{ policy_controller_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
{% endif %} {% endif %}
@@ -59,6 +61,8 @@ spec:
- /usr/bin/check-status - /usr/bin/check-status
- -r - -r
periodSeconds: 10 periodSeconds: 10
securityContext:
runAsNonRoot: true
env: env:
- name: LOG_LEVEL - name: LOG_LEVEL
value: {{ calico_policy_controller_log_level }} value: {{ calico_policy_controller_log_level }}
@@ -68,6 +72,8 @@ spec:
- name: DATASTORE_TYPE - name: DATASTORE_TYPE
value: kubernetes value: kubernetes
{% else %} {% else %}
- name: ENABLED_CONTROLLERS
value: policy,namespace,serviceaccount,workloadendpoint,node
- name: ETCD_ENDPOINTS - name: ETCD_ENDPOINTS
value: "{{ etcd_access_addresses }}" value: "{{ etcd_access_addresses }}"
- name: ETCD_CA_CERT_FILE - name: ETCD_CA_CERT_FILE

View File

@@ -19,19 +19,6 @@ rules:
- watch - watch
- list - list
- get - get
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- watch
- list
{% elif calico_datastore == "kdd" %} {% elif calico_datastore == "kdd" %}
# Nodes are watched to monitor for deletions. # Nodes are watched to monitor for deletions.
- apiGroups: [""] - apiGroups: [""]
@@ -67,6 +54,7 @@ rules:
- blockaffinities - blockaffinities
- ipamblocks - ipamblocks
- ipamhandles - ipamhandles
- tiers
verbs: verbs:
- get - get
- list - list