Files
Keybard-Vagabond-Demo/manifests/infrastructure/postgresql/postgresql-dashboard-rbac.yaml

23 lines
542 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: postgresql-system
name: postgresql-configmap-reader
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: postgresql-configmap-reader
namespace: postgresql-system
subjects:
- kind: ServiceAccount
name: postgresql-shared
namespace: postgresql-system
roleRef:
kind: Role
name: postgresql-configmap-reader
apiGroup: rbac.authorization.k8s.io