-
Notifications
You must be signed in to change notification settings - Fork 0
/
blk-server.yaml
51 lines (51 loc) · 1.21 KB
/
blk-server.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
apiVersion: v1
kind: Pod
metadata:
name: fio-server${srv}
namespace: simple-fio
labels:
app: fio-server
spec:
containers:
- image: quay.io/abose/fio:latest
name: fio-server
namespace: simple-fio
resources:
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "5Gi"
cpu: "2"
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
command: ["/bin/sh", "-c"]
args: ["/usr/bin/fio --server"]
#args: ["/usr/bin/fio --server=ip6:"]
ports:
- containerPort: 8765
volumeDevices:
- name: data-vol${srv}
devicePath: /dev/rbd
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- fio-server
topologyKey: "kubernetes.io/hostname"
restartPolicy: Never
volumes:
- name: data-vol${srv}
persistentVolumeClaim:
claimName: fio-pv-claim${srv}