-
Notifications
You must be signed in to change notification settings - Fork 24
/
fio_deployment_pvc.yaml
48 lines (48 loc) · 1 KB
/
fio_deployment_pvc.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fio
labels:
app: fio
spec:
replicas: 3
selector:
matchLabels:
app: fio
template:
metadata:
labels:
app: fio
spec:
containers:
- name: fio
image: joshuarobinson/fio:3.19
command: ["sh"]
args: ["-c", "echo ${HOSTNAME} && mkdir -p /scratch/${HOSTNAME} && fio /configs/fio.job --eta=never --directory=/scratch/${HOSTNAME}"]
volumeMounts:
- name: fio-config-vol
mountPath: /configs
- name: fio-data
mountPath: /scratch
imagePullPolicy: Always
restartPolicy: Always
volumes:
- name: fio-config-vol
configMap:
name: fio-job-config
- name: fio-data
persistentVolumeClaim:
claimName: fio-claim
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: fio-claim
spec:
storageClassName: pure-file
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Ti