feat: 添加ConfigMap管理配置,密码使用Secret

This commit is contained in:
Agent
2026-03-24 13:45:14 +00:00
parent a8b8d270ab
commit 7b760f794b
3 changed files with 35 additions and 0 deletions

View File

@@ -1,5 +1,15 @@
apiVersion: v1
kind: Secret
metadata:
name: todo-backend-secret
namespace: drone
type: Opaque
data:
# 密码需要base64编码例如 echo -n 'your_password' | base64
SPRING_DATASOURCE_PASSWORD: cG9zdGdyZXM= # postgres
---
apiVersion: v1
kind: Secret
metadata:
name: tencentyun-secret
namespace: drone