log-center/k8s/web-deployment-prod.yaml
zyc 637c479818
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m30s
feat: initial log center with k8s deployment
2026-01-30 11:49:47 +08:00

42 lines
770 B
YAML

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