calico-clusterrole.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. kind: ClusterRole
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. metadata:
  4. name: calico
  5. namespace: kube-system
  6. labels:
  7. kubernetes.io/cluster-service: "true"
  8. addonmanager.kubernetes.io/mode: Reconcile
  9. rules:
  10. - apiGroups: [""]
  11. resources:
  12. - namespaces
  13. - serviceaccounts
  14. verbs:
  15. - get
  16. - list
  17. - watch
  18. - apiGroups: [""]
  19. resources:
  20. - endpoints
  21. verbs:
  22. - get
  23. - apiGroups: [""]
  24. resources:
  25. - services
  26. verbs:
  27. - get
  28. - apiGroups: [""]
  29. resources:
  30. - pods/status
  31. verbs:
  32. - update
  33. - patch
  34. - apiGroups: [""]
  35. resources:
  36. - nodes
  37. verbs:
  38. - get
  39. - list
  40. - update
  41. - watch
  42. - apiGroups: ["networking.k8s.io"]
  43. resources:
  44. - networkpolicies
  45. verbs:
  46. - watch
  47. - list
  48. - apiGroups: ["crd.projectcalico.org"]
  49. resources:
  50. - felixconfigurations
  51. - bgppeers
  52. - bgpconfigurations
  53. - ippools
  54. - globalnetworkpolicies
  55. - globalnetworksets
  56. - networkpolicies
  57. - clusterinformations
  58. - hostendpoints
  59. verbs:
  60. - create
  61. - get
  62. - list
  63. - update
  64. - watch
  65. # Used in Calico v2.6 only - can be removed after upgrade.
  66. - apiGroups: [""]
  67. resources:
  68. - pods
  69. verbs:
  70. - get
  71. - list
  72. - watch
  73. - patch
  74. - apiGroups: ["crd.projectcalico.org"]
  75. resources:
  76. - globalfelixconfigs
  77. - globalbgpconfigs
  78. verbs:
  79. - create
  80. - get
  81. - list
  82. - update
  83. - watch
  84. - apiGroups: ["extensions"]
  85. resources:
  86. - networkpolicies
  87. verbs:
  88. - get
  89. - list
  90. - watch