forked from antonputra/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstress-test.yaml
62 lines (62 loc) · 1.29 KB
/
stress-test.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
---
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-pod-1
namespace: default
labels:
app: ubuntu-pod
spec:
containers:
- name: ubuntu
image: ubuntu:22.04
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 800m
memory: 1Gi
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- ubuntu-pod
topologyKey: "kubernetes.io/hostname"
---
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-pod-2
namespace: default
labels:
app: ubuntu-pod
spec:
containers:
- name: ubuntu
image: ubuntu:22.04
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
resources:
requests:
cpu: 500m
memory: 256Mi
limits:
cpu: 1500m
memory: 512Mi
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- ubuntu-pod
topologyKey: "kubernetes.io/hostname"