kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch19/stress/with-priorities/stress-priority-low.yaml

31 lines
568 B
YAML
Raw Normal View History

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