Requests are set to an explicit 0 instead of being removed, because Kubernetes defaults a missing request to the limit, which would reserve even more. Limits stay as an upper bound. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
38 lines
855 B
YAML
38 lines
855 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: apicore-frontend
|
|
labels:
|
|
app: apicore-frontend
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: apicore-frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: apicore-frontend
|
|
spec:
|
|
containers:
|
|
- name: apicore-frontend
|
|
image: git.encry.de/nick.rosenloecher/apicore-frontend:latest
|
|
ports:
|
|
- containerPort: 3000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: apicore-frontend-config
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: "0"
|
|
memory: "0"
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|