video-shuoshan/k8s/web-deployment.yaml
zyc 36ff1b5aca
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m17s
fix build dev
2026-04-04 11:18:17 +08:00

58 lines
1.1 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
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