forked from minio/hperf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hperf.yaml
63 lines (63 loc) · 1.45 KB
/
hperf.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
---
apiVersion: v1
kind: Service
metadata:
name: hperf
labels:
app: hperf
spec:
publishNotReadyAddresses: true
clusterIP: None
ports:
- port: 9999
name: http1
- port: 10000
name: http2
selector:
app: hperf
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: hperf
labels:
app: hperf
spec:
serviceName: hperf
podManagementPolicy: Parallel
replicas: 6
selector:
matchLabels:
app: hperf
template:
metadata:
name: hperf
labels:
app: hperf
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- hperf
topologyKey: "kubernetes.io/hostname"
containers:
- name: hperf
image: "quay.io/minio/hperf"
imagePullPolicy: Always
args:
- hperf-0.hperf.${NAMESPACE}.svc.cluster.local
- hperf-1.hperf.${NAMESPACE}.svc.cluster.local
- hperf-2.hperf.${NAMESPACE}.svc.cluster.local
- hperf-3.hperf.${NAMESPACE}.svc.cluster.local
- hperf-4.hperf.${NAMESPACE}.svc.cluster.local
- hperf-5.hperf.${NAMESPACE}.svc.cluster.local
ports:
- name: http1
containerPort: 9999
- name: http2
containerPort: 10000