rtc_web/k8s/web-deployment-prod.yaml
zyc 8b2dc9e943
All checks were successful
Build and Deploy Web / build-and-deploy (push) Successful in 1m55s
fix one server
2026-01-29 15:15:41 +08:00

42 lines
710 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: rtc-web
labels:
app: rtc-web
spec:
replicas: 1
selector:
matchLabels:
app: rtc-web
template:
metadata:
labels:
app: rtc-web
spec:
containers:
- name: rtc-web
image: ${CI_REGISTRY_IMAGE}/web:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: rtc-web
spec:
selector:
app: rtc-web
ports:
- protocol: TCP
port: 80
targetPort: 80