This repository was archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrk2.job.yaml
More file actions
58 lines (58 loc) · 1.3 KB
/
wrk2.job.yaml
File metadata and controls
58 lines (58 loc) · 1.3 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
apiVersion: batch/v1
kind: Job
metadata:
labels:
workload: wrk2
generateName: wrk2-
spec:
backoffLimit: 6
completions: 1
parallelism: 1
template:
metadata:
labels:
workload: wrk2
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: workload
operator: In
values:
- wrk2
topologyKey: kubernetes.io/hostname
initContainers:
- command:
- sh
- -c
- sysctl -w net.ipv4.ip_local_port_range="1024 65535"
image: alpine:3.6
imagePullPolicy: IfNotPresent
name: sysctl-set
securityContext:
privileged: true
containers:
- command:
- wrk
- --threads
- "4"
- --latency
- --duration
- "300"
- --connections
- "600"
- --rate
- "30000"
- --header
- "Host: example.com"
- http://envoy.contour.svc.cluster.local
image: bootjp/wrk2
imagePullPolicy: Always
name: wrk2
nodeSelector:
workload: wrk
restartPolicy: OnFailure