-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfs-server.yaml
More file actions
61 lines (61 loc) · 1.49 KB
/
Copy pathfs-server.yaml
File metadata and controls
61 lines (61 loc) · 1.49 KB
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
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:
# capabilities:
# add: ["SYS_ADMIN"]
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
volumeMounts:
- name: data-vol${srv}
mountPath: "/mnt/pvc"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: In
values:
- ""
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}