Initial commit
This commit is contained in:
30
templates/serivceaccount.yaml
Normal file
30
templates/serivceaccount.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: job-orchestrator-role
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
---
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: job-orchestrator-role-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: job-orchestrator-account
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: job-orchestrator-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: job-orchestrator-account
|
||||
{{ if eq .Values.k8s.use_regcred true }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.k8s.regcred_name }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user