log-center/k8s/api-deployment-prod.yaml
repair-agent 25c9b2d18e
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m39s
fix bug
2026-03-02 17:46:33 +08:00

57 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:
# PostgreSQL Database
- name: DB_HOST
value: "pgm-7xv4811oj11j86htzo.pg.rds.aliyuncs.com"
- name: DB_PORT
value: "5432"
- name: DB_NAME
value: "log_center"
- name: DB_USER
value: "log_center"
- name: DB_PASSWORD
value: "JogNQdtrd3WY8CBCAiYfYEGx"
# Gitea TokenURL 从 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