-
Notifications
You must be signed in to change notification settings - Fork 2
/
periodic.yaml
74 lines (71 loc) · 1.71 KB
/
periodic.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: chaos-periodic
spec:
concurrencyPolicy: Forbid
schedule: "*/5 * * * *"
jobTemplate:
metadata:
labels:
app: chaos-periodic
spec:
activeDeadlineSeconds: 600
backoffLimit: 0
template:
metadata:
labels:
app: chaos-periodic
annotations:
sidecar.istio.io/inject: "false"
spec:
serviceAccountName: chaostoolkit
restartPolicy: Never
containers:
- name: chaostoolkit
image: nitinkansal/chaostoolkit:1.4.1-2
args:
- --verbose
- run
- --journal-path
- /results/report.json
- /experiment/health-http.yaml
env:
- name: CHAOSTOOLKIT_IN_POD
value: "true"
- name: INGRESS_HOST
value: 104.45.180.156
volumeMounts:
- name: experiments
mountPath: /experiment
readOnly: true
- name: results
mountPath: /results
readOnly: false
resources:
limits:
cpu: 20m
memory: 64Mi
requests:
cpu: 20m
memory: 64Mi
volumes:
- name: experiments
configMap:
name: chaostoolkit-experiments
- name: results
persistentVolumeClaim:
claimName: chaos-periodic
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: chaos-periodic
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: azurefile