feat: 添加ConfigMap管理配置,密码使用Secret
This commit is contained in:
@@ -23,6 +23,15 @@ spec:
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: todo-backend-config
|
||||
env:
|
||||
- name: SPRING_DATASOURCE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: todo-backend-secret
|
||||
key: SPRING_DATASOURCE_PASSWORD
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in New Issue
Block a user