-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Onlineberatung/5736-fix-backups-for-ldap
fix: prod backups for openldap
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: backup-reader-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: default | ||
namespace: backup | ||
roleRef: | ||
kind: ClusterRole | ||
name: backup-cluster-reader | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
# "namespace" omitted since ClusterRoles are not namespaced | ||
name: backup-cluster-reader | ||
rules: | ||
- apiGroups: [""] | ||
# | ||
# at the HTTP level, the name of the resource for accessing Secret | ||
# objects is "secrets" | ||
resources: ["pods"] | ||
verbs: ["get", "list"] | ||
- apiGroups: [ "" ] | ||
# | ||
# at the HTTP level, the name of the resource for accessing Secret | ||
# objects is "secrets" | ||
resources: [ "pods/exec" ] | ||
verbs: [ "create" ] |