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.

34 lines
806 B

  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: local-storage-admin
  6. ---
  7. apiVersion: rbac.authorization.k8s.io/v1beta1
  8. kind: ClusterRoleBinding
  9. metadata:
  10. name: local-storage-provisioner-pv-binding
  11. namespace: {{ system_namespace }}
  12. subjects:
  13. - kind: ServiceAccount
  14. name: local-storage-admin
  15. namespace: {{ system_namespace }}
  16. roleRef:
  17. kind: ClusterRole
  18. name: system:persistent-volume-provisioner
  19. apiGroup: rbac.authorization.k8s.io
  20. ---
  21. apiVersion: rbac.authorization.k8s.io/v1beta1
  22. kind: ClusterRoleBinding
  23. metadata:
  24. name: local-storage-provisioner-node-binding
  25. namespace: {{ system_namespace }}
  26. subjects:
  27. - kind: ServiceAccount
  28. name: local-storage-admin
  29. namespace: {{ system_namespace }}
  30. roleRef:
  31. kind: ClusterRole
  32. name: system:node
  33. apiGroup: rbac.authorization.k8s.io