Files
k8s-manifests/base/frontend/deployment.yaml
2026-02-06 17:26:56 +00:00

48 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: frontend
component: ui
spec:
replicas: 2
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
component: ui
spec:
containers:
- name: frontend
image: gitea.example.com/inventory/frontend:latest # Overridden by Kustomize
ports:
- containerPort: 80
name: http
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "100m"
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 2