Mercurial > code > home > repos > photoprism
view roles.yaml @ 7:07aa4c3cddc4
redo user accounts
author | drewp@bigasterisk.com |
---|---|
date | Sun, 19 Mar 2023 17:19:47 -0700 |
parents | 4bf137b25259 |
children |
line wrap: on
line source
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: photoprism rules: - apiGroups: - apps resources: - deployments verbs: ["get", "list", "watch"] - apiGroups: - "" resources: - pods # for the exec in the cronjob - pods/exec verbs: ["*"] - nonResourceURLs: ["/metrics"] verbs: ["get"] --- apiVersion: v1 kind: ServiceAccount metadata: name: photoprism --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: photoprism roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: photoprism subjects: - kind: ServiceAccount name: photoprism namespace: default - kind: ServiceAccount name: default namespace: default