lty/k8s/admin-deployment-prod.yaml
zyc e293c38606
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 13m49s
add cicd
2026-03-17 14:37:42 +08:00

63 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: lty-admin
labels:
app: lty-admin
spec:
replicas: 1
selector:
matchLabels:
app: lty-admin
template:
metadata:
labels:
app: lty-admin
spec:
containers:
- name: lty-admin
image: ${CI_REGISTRY_IMAGE}/lty-admin:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: NODE_ENV
value: "production"
- name: NEXT_PUBLIC_API_BASE_URL
value: "https://qiyuan-lty-api.airlabs.art"
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: lty-admin
spec:
selector:
app: lty-admin
ports:
- protocol: TCP
port: 3000
targetPort: 3000