Files
user-system/kubernetes/user-management/templates/configmap.yaml
long-agent 54a73e66f4 docs: add runbooks and Kubernetes Helm Chart
Add 6 runbook documents:
- 服务启动 (Service Startup)
- 服务停止 (Service Shutdown)
- 配置更新 (Configuration Update)
- 日志分析 (Log Analysis)
- 备份恢复 (Backup & Recovery)
- 安全事件 (Security Incident)

Add Kubernetes Helm Chart:
- Chart.yaml, values.yaml
- Deployment with health checks
- Ingress with TLS support
- PVC for data persistence
- PDB for high availability
- HPA for autoscaling
- ServiceAccount configuration

Add cron-backup.conf for automated backup scheduling.
2026-04-11 22:57:31 +08:00

28 lines
751 B
YAML

{{- /*
ConfigMap template - stores non-sensitive configuration
*/ -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "user-management.fullname" . }}-config
labels:
{{- include "user-management.labels" . | nindent 4 }}
data:
GIN_MODE: "release"
TZ: "Asia/Shanghai"
LOG_LEVEL: {{ .Values.config.logLevel | quote }}
ADMIN_EMAIL: {{ .Values.config.adminEmail | quote }}
---
{{- /*
Secret template - stores sensitive configuration
*/ -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "user-management.fullname" . }}-config
labels:
{{- include "user-management.labels" . | nindent 4 }}
type: Opaque
stringData:
JWT_SECRET: {{ required "config.jwtSecret is required" .Values.config.jwtSecret | b64enc | quote }}