File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
roles/kubernetes-apps/policy_controller/calico/templates Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,26 @@ metadata:
6
6
namespace: kube-system
7
7
rules:
8
8
{% if calico_datastore == "etcd" %}
9
- - apiGroups:
10
- - ""
11
- - extensions
9
+ # Pods are monitored for changing labels.
10
+ # The node controller monitors Kubernetes nodes.
11
+ # Namespace and serviceaccount labels are used for policy.
12
+ - apiGroups: [""]
12
13
resources:
13
14
- pods
14
- - namespaces
15
- - networkpolicies
16
15
- nodes
16
+ - namespaces
17
17
- serviceaccounts
18
18
verbs:
19
19
- watch
20
20
- list
21
21
- get
22
+ # Watch for changes to Kubernetes NetworkPolicies.
23
+ - apiGroups: ["networking.k8s.io"]
24
+ resources:
25
+ - networkpolicies
26
+ verbs:
27
+ - watch
28
+ - list
22
29
{% elif calico_datastore == "kdd" %}
23
30
# Nodes are watched to monitor for deletions.
24
31
- apiGroups: [""]
You can’t perform that action at this time.
0 commit comments