This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stress-high
labels:
kiamol: ch19
spec:
replicas: 2
selector:
matchLabels:
app: stress
level: high
template:
metadata:
labels:
app: stress
level: high
spec:
priorityClassName: kiamol-low
containers:
- name: stress
image: kiamol/ch19-stress
env:
- name: MEMORY_STRESS_MB
value: "300"
resources:
requests:
memory: 250Mi
limits:
memory: 350Mi

View File

@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stress-low
labels:
kiamol: ch19
spec:
replicas: 4
selector:
matchLabels:
app: stress
level: low
template:
metadata:
labels:
app: stress
level: low
spec:
priorityClassName: kiamol-low
containers:
- name: stress
image: kiamol/ch19-stress
env:
- name: MEMORY_STRESS_MB
value: "300"
resources:
requests:
memory: 50Mi
limits:
memory: 350Mi