Files
SFusion/k8s/08-frontend-deployment.yaml
2026-05-09 13:28:12 +03:00

43 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sfusion-frontend
namespace: sfusion
labels:
app.kubernetes.io/name: sfusion-frontend
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: sfusion-frontend
template:
metadata:
labels:
app.kubernetes.io/name: sfusion-frontend
spec:
containers:
- name: frontend
# docker build frontend with --target prod, push, update this reference.
image: sfusion/frontend:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 5173
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 3
periodSeconds: 5
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: "500m"
memory: 256Mi