Skip to content
Snippets Groups Projects
Commit 3fbb88be authored by georgi.todorov's avatar georgi.todorov
Browse files

Add service account, roles and bindings

parent 5e4b55e6
No related branches found
No related tags found
1 merge request!1mongo-custom-helm
Pipeline #56218 passed
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "mongodb.name" . }}
rules:
- verbs:
- '*'
apiGroups:
- '*'
resources:
- '*'
\ No newline at end of file
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "mongodb.name" . }}
subjects:
- kind: ServiceAccount
name: {{ template "mongodb.name" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "mongodb.name" . }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "mongodb.name" . }}
namespace: {{ .Release.Namespace }}
automountServiceAccountToken: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment