feat(resources): add examples (#24)
parent
69f8a2c03f
commit
c3e9b6399c
@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: cpu-requests
|
||||
spec:
|
||||
containers:
|
||||
- name: stress
|
||||
image: polinux/stress
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1000 # Let's hope you have less than 1000 cores on your testing machine
|
||||
command: ["stress"]
|
@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: cpu-limits
|
||||
spec:
|
||||
containers:
|
||||
- name: throttling
|
||||
image: elpicador/cpu-throttling
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
limits:
|
||||
cpu: 50m
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: ram-requests
|
||||
spec:
|
||||
containers:
|
||||
- name: stress
|
||||
image: polinux/stress
|
||||
resources:
|
||||
requests:
|
||||
memory: 1000Gi # Let's hope you have less than 1000GB of RAM cores on your testing machine
|
||||
command: ["stress"]
|
@ -0,0 +1,23 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: ram-limits
|
||||
spec:
|
||||
containers:
|
||||
- name: stress
|
||||
image: polinux/stress
|
||||
resources:
|
||||
requests:
|
||||
memory: 100M
|
||||
limits:
|
||||
memory: 100M
|
||||
command: ["stress"]
|
||||
args:
|
||||
- "--vm"
|
||||
- "1"
|
||||
- "--vm-bytes"
|
||||
- "200M"
|
||||
- "--verbose"
|
||||
- "--vm-hang"
|
||||
- "1"
|
Loading…
Reference in New Issue