Newer
Older
apiVersion: batch/v1
kind: Job
metadata:
name: theodolite
spec:
template:
spec:
containers:
- name: theodolite
image: bvonheid/theodolite:latest
# imagePullPolicy: Never # Used to pull "own" local image
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
env:
- name: UC
value: "1"
- name: LOADS
value: "13206, 19635"
- name: INSTANCES
value: "1, 2"
- name: DURATION
value: "3"
- name: PARTITIONS
value: "30"
# - name: COMMIT_MS
# value: ""
# - name: SEARCH_STRATEGY
# value: ""
# - name: CPU_LIMIT
# value: ""
# - name: MEMORY_LIMIT
# value: ""
- name: PROMETHEUS_BASE_URL
value: "http://prometheus-operated:9090"
- name: PYTHONUNBUFFERED
value: "1"
restartPolicy: Never
backoffLimit: 4
# ---
# apiVersion: v1
# kind: ServiceAccount
# metadata:
# name: theodolite
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: Role
# metadata:
# name: modify-pods
# rules:
# - apiGroups: [""]
# resources:
# - pods
# verbs:
# - get
# - list
# - delete
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: RoleBinding
# metadata:
# name: modify-pods-to-sa
# subjects:
# - kind: ServiceAccount
# name: theodolite
# roleRef:
# kind: Role
# name: modify-pods
# apiGroup: rbac.authorization.k8s.io