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.

52 lines
742 B

  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: flannel
  6. namespace: kube-system
  7. ---
  8. kind: ClusterRole
  9. apiVersion: rbac.authorization.k8s.io/v1
  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. - get
  25. - list
  26. - watch
  27. - apiGroups:
  28. - ""
  29. resources:
  30. - nodes/status
  31. verbs:
  32. - patch
  33. - apiGroups:
  34. - "networking.k8s.io"
  35. resources:
  36. - clustercidrs
  37. verbs:
  38. - list
  39. - watch
  40. ---
  41. kind: ClusterRoleBinding
  42. apiVersion: rbac.authorization.k8s.io/v1
  43. metadata:
  44. name: flannel
  45. roleRef:
  46. apiGroup: rbac.authorization.k8s.io
  47. kind: ClusterRole
  48. name: flannel
  49. subjects:
  50. - kind: ServiceAccount
  51. name: flannel
  52. namespace: kube-system