video-shuoshan/k8s/web-deployment.yaml
zyc c1a0a477d8
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 6m0s
add huoshan build
2026-03-19 11:19:28 +08:00

60 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: video-web
labels:
app: video-web
spec:
replicas: 1
selector:
matchLabels:
app: video-web
template:
metadata:
labels:
app: video-web
annotations:
vke.volcengine.com/burst-to-vci: "enforce"
spec:
containers:
- name: video-web
image: ${CI_REGISTRY_IMAGE}/video-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: video-web
spec:
selector:
app: video-web
ports:
- protocol: TCP
port: 80
targetPort: 80