Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 43946fa

Browse files
committedJan 1, 2024
deploy: Run with a service account that can schedule jobs
1 parent 3dc7609 commit 43946fa

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
 

‎deploy/dapps-certification.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ spec:
149149
volumes:
150150
- name: ipc
151151
path: /ipc
152+
- type: service-account
153+
properties:
154+
name: dapps-certification
152155
type: webservice
153156
policies:
154157
- name: local-dapps-certification
@@ -166,3 +169,36 @@ spec:
166169
properties:
167170
policies:
168171
- local-dapps-certification
172+
---
173+
apiVersion: v1
174+
kind: ServiceAccount
175+
metadata:
176+
name: dapps-certification
177+
namespace: dapps-certification-staging
178+
---
179+
apiVersion: rbac.authorization.k8s.io/v1
180+
kind: Role
181+
metadata:
182+
name: dapps-certification
183+
namespace: dapps-certification-staging
184+
rules:
185+
- apiGroups: ["batch"]
186+
resources: ["jobs"]
187+
verbs: ["get", "create", "watch", "delete"]
188+
- apiGroups: [""]
189+
resources: ["pods", "pods/log"]
190+
verbs: ["get", "list"]
191+
---
192+
apiVersion: rbac.authorization.k8s.io/v1
193+
kind: RoleBinding
194+
metadata:
195+
name: dapps-certification
196+
namespace: dapps-certification-staging
197+
roleRef:
198+
apiGroup: rbac.authorization.k8s.io
199+
kind: Role
200+
name: dapps-certification
201+
subjects:
202+
- kind: ServiceAccount
203+
name: dapps-certification
204+
namespace: dapps-certification-staging

0 commit comments

Comments
 (0)
Please sign in to comment.