Skip to content

Commit

Permalink
more pod perms
Browse files Browse the repository at this point in the history
  • Loading branch information
womfoo committed Jul 26, 2023
1 parent 034c621 commit 149932f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions infrastructure/charts/agent/templates/vaultstandalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,44 @@ roleRef:
name: secrets-reader # this must match the name of the Role or ClusterRole you wish to bind to
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: read-pods
namespace: {{ .Release.Namespace }}
subjects:
- kind: User
name: vault # "name" is case sensitive
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role #this must be Role or ClusterRole
name: secrets-reader # this must match the name of the Role or ClusterRole you wish to bind to
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: {{ .Release.Namespace }}
name: pods-reader
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: read-pods
namespace: {{ .Release.Namespace }}
subjects:
- kind: User
name: vault
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: pods-reader
apiGroup: rbac.authorization.k8s.io
---
apiVersion: "vault.banzaicloud.com/v1alpha1"
kind: "Vault"
metadata:
Expand Down

0 comments on commit 149932f

Please sign in to comment.