rtc_web/k8s/web-deployment.yaml
zyc a85e4208bf
Some checks failed
Build and Deploy Web / build-and-deploy (push) Failing after 2m53s
add k3s
2026-01-29 11:38: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