You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
728 B

  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: flannel
  6. namespace: "{{system_namespace}}"
  7. ---
  8. kind: ClusterRole
  9. apiVersion: rbac.authorization.k8s.io/v1beta1
  10. metadata:
  11. name: flannel
  12. rules:
  13. - apiGroups:
  14. - ""
  15. resources:
  16. - pods
  17. verbs:
  18. - get
  19. - apiGroups:
  20. - ""
  21. resources:
  22. - nodes
  23. verbs:
  24. - list
  25. - watch
  26. - apiGroups:
  27. - ""
  28. resources:
  29. - nodes/status
  30. verbs:
  31. - patch
  32. ---
  33. kind: ClusterRoleBinding
  34. apiVersion: rbac.authorization.k8s.io/v1beta1
  35. metadata:
  36. name: flannel
  37. roleRef:
  38. apiGroup: rbac.authorization.k8s.io
  39. kind: ClusterRole
  40. name: flannel
  41. subjects:
  42. - kind: ServiceAccount
  43. name: flannel
  44. namespace: "{{system_namespace}}"