Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 32s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
||
kind: Deployment
|
||
metadata:
|
||
name: log-center-api
|
||
labels:
|
||
app: log-center-api
|
||
spec:
|
||
replicas: 1
|
||
selector:
|
||
matchLabels:
|
||
app: log-center-api
|
||
template:
|
||
metadata:
|
||
labels:
|
||
app: log-center-api
|
||
spec:
|
||
containers:
|
||
- name: log-center-api
|
||
image: ${CI_REGISTRY_IMAGE}/log-center-api:latest
|
||
imagePullPolicy: Always
|
||
ports:
|
||
- containerPort: 8002
|
||
env:
|
||
# MySQL Database (Volcano Engine RDS)
|
||
- name: DB_HOST
|
||
value: "192.168.0.131"
|
||
- name: DB_PORT
|
||
value: "3306"
|
||
- name: DB_NAME
|
||
value: "log_center"
|
||
- name: DB_USER
|
||
value: "zyc"
|
||
- name: DB_PASSWORD
|
||
value: "Zyc188208"
|
||
# Gitea Token(URL 从 PR URL 自动解析)
|
||
- name: GITEA_TOKEN
|
||
value: "443f7f2f556b4832f90e46df9af3e21ccb06b8a3"
|
||
resources:
|
||
requests:
|
||
memory: "128Mi"
|
||
cpu: "100m"
|
||
limits:
|
||
memory: "512Mi"
|
||
cpu: "500m"
|
||
---
|
||
apiVersion: v1
|
||
kind: Service
|
||
metadata:
|
||
name: log-center-api
|
||
spec:
|
||
selector:
|
||
app: log-center-api
|
||
ports:
|
||
- protocol: TCP
|
||
port: 8002
|
||
targetPort: 8002
|