-
Notifications
You must be signed in to change notification settings - Fork 93
/
stress.yml
47 lines (47 loc) · 836 Bytes
/
stress.yml
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
---
apiVersion: v1
kind: Namespace
metadata:
name: stress
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: stress
name: api
spec:
replicas: 100
template:
metadata:
labels:
app: api
tier: frontend
spec:
containers:
- name: nginx
image: busybox
command:
- /bin/sh
- "-c"
- i=0; while true; do echo "GET /users/$i"; sleep 1; i=$((i + 1)); done
- name: cache
image: busybox
command:
- /bin/sh
- "-c"
- i=0; while true; do echo "evict users.$i"; sleep 2; i=$((i + 1)); done
---
kind: Service
apiVersion: v1
metadata:
namespace: stress
name: api
spec:
type: NodePort
selector:
app: api
tier: frontend
ports:
- protocol: TCP
port: 4200
targetPort: http