postgresql_viewer_role.yaml 610 B

123456789101112131415161718192021222324252627
  1. # permissions for end users to view postgresqls.
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRole
  4. metadata:
  5. labels:
  6. app.kubernetes.io/name: clusterrole
  7. app.kubernetes.io/instance: postgresql-viewer-role
  8. app.kubernetes.io/component: rbac
  9. app.kubernetes.io/created-by: nodb
  10. app.kubernetes.io/part-of: nodb
  11. app.kubernetes.io/managed-by: kustomize
  12. name: postgresql-viewer-role
  13. rules:
  14. - apiGroups:
  15. - database.iwanhae.kr
  16. resources:
  17. - postgresqls
  18. verbs:
  19. - get
  20. - list
  21. - watch
  22. - apiGroups:
  23. - database.iwanhae.kr
  24. resources:
  25. - postgresqls/status
  26. verbs:
  27. - get