bolt.diy/k8s/deployment.yaml
2025-06-16 21:50:07 -04:00

54 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: buildify
labels:
app: buildify
annotations:
# Image versioning notes:
# The CI/CD pipeline will create a PR to update this deployment with specific image tags
# For tagged releases: 891377135844.dkr.ecr.us-east-1.amazonaws.com/buildify:v1.0.0
# For main branch: 891377135844.dkr.ecr.us-east-1.amazonaws.com/buildify:<short-sha>
# For dev branch: 891377135844.dkr.ecr.us-east-1.amazonaws.com/buildify:dev
spec:
replicas: 3
selector:
matchLabels:
app: buildify
template:
metadata:
labels:
app: buildify
spec:
serviceAccountName: ecr-service-account
containers:
- name: buildify
image: 891377135844.dkr.ecr.us-east-1.amazonaws.com/buildify:sha-544199a
imagePullPolicy: Always
ports:
- containerPort: 5173
name: http
resources:
requests:
cpu: "750m"
memory: "768Mi"
limits:
cpu: "1500m"
memory: "1.5Gi"
envFrom:
- configMapRef:
name: buildify-config
- secretRef:
name: buildify-auth-secrets
# Gentle liveness probe on "/" — 302 counts as healthy
livenessProbe:
httpGet:
path: /
port: 5173
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 3
# No readinessProbe: Pods are marked Ready as soon as the container starts