Files
buzz/k8s/deployment-app.yaml
T
dmgnr d8e7c29c51
Build and Push Image / build-backend (push) Successful in 1m56s
Build and Push Image / build-frontend (push) Successful in 3m9s
Build and Push Image / push (push) Successful in 45s
feat: add message broadcaster
2026-09-12 00:00:51 +07:00

68 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: app
namespace: buzz
labels:
app: buzz
component: app
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
app: buzz
component: app
template:
metadata:
labels:
app: buzz
component: app
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: region
operator: In
values:
- sg
terminationGracePeriodSeconds: 5
containers:
- name: app
image: registry.neko-piranha.ts.net/astral/buzz:frontend
ports:
- containerPort: 3000
protocol: TCP
envFrom:
- secretRef:
name: buzz-env
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
livenessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 10
periodSeconds: 60
timeoutSeconds: 30
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 15