-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path04-install-opa-test-runner.yaml
More file actions
49 lines (49 loc) · 961 Bytes
/
Copy path04-install-opa-test-runner.yaml
File metadata and controls
49 lines (49 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: logging-role
rules:
- apiGroups: [""]
resources: ["services", "pods", "pods/log"]
verbs: ["get", "list"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: logging-sa
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: logging-rb
subjects:
- kind: ServiceAccount
name: logging-sa
roleRef:
kind: Role
name: logging-role
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: opa-test-runner
labels:
app: opa-test-runner
spec:
replicas: 1
selector:
matchLabels:
app: opa-test-runner
template:
metadata:
labels:
app: opa-test-runner
spec:
serviceAccountName: logging-sa
containers:
- name: opa-test-runner
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
stdin: true
tty: true