airlabs-manage/k8s/web-deployment-prod.yaml
zyc afbc8594ee
All checks were successful
Build and Deploy Web / build-and-deploy (push) Successful in 1m24s
Build and Deploy Backend / build-and-deploy (push) Successful in 1m14s
fix dev
2026-04-07 15:21:21 +08:00

60 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: airlabs-manage-web
labels:
app: airlabs-manage-web
spec:
replicas: 1
selector:
matchLabels:
app: airlabs-manage-web
template:
metadata:
labels:
app: airlabs-manage-web
spec:
imagePullSecrets:
- name: cr-pull-secret
containers:
- name: airlabs-manage-web
image: ${CI_REGISTRY_IMAGE}/web:latest
imagePullPolicy: Always
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "256Mi"
cpu: "250m"
---
apiVersion: v1
kind: Service
metadata:
name: airlabs-manage-web
spec:
selector:
app: airlabs-manage-web
ports:
- protocol: TCP
port: 80
targetPort: 80