Files
buzz/k8s/deployment-app.yaml
T
dmgnr 073004963b
Build and Push Image / build-backend (push) Successful in 43s
Build and Push Image / build-frontend (push) Successful in 1m49s
Build and Push Image / push (push) Successful in 18m11s
ci: switch registry host
2026-07-05 08:34:45 +00:00

67 lines
1.5 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: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10