Pārlūkot izejas kodu

Add permissions for the Calico CNI plugin to access namespaces

matt 6 gadi atpakaļ
vecāks
revīzija
69e33834ae
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      roles/calico/templates/calicov3.yml.j2

+ 2 - 0
roles/calico/templates/calicov3.yml.j2

@@ -14,6 +14,7 @@ rules:
       - namespaces
       - networkpolicies
       - nodes
+      - serviceaccounts
     verbs:
       - watch
       - list
@@ -49,6 +50,7 @@ rules:
   - apiGroups: [""]
     resources:
       - pods
+      - namespaces
       - nodes
     verbs:
       - get