mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 10:57:28 +00:00
petclinic external-secret,Deployment config update
This commit is contained in:
parent
c2e07104f9
commit
cbaa4c848e
2 changed files with 11 additions and 5 deletions
|
|
@ -12,11 +12,17 @@ spec:
|
|||
name: petclinic-db-secret # 실제 생성될 k8s Secret 이름
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: SPRING_DATASOURCE_URL
|
||||
remoteRef:
|
||||
key: /finalproj/dev/petclinic-db # "고정 문자열"만 repo에 존재
|
||||
property: jdbc_url
|
||||
|
||||
- secretKey: SPRING_DATASOURCE_USERNAME
|
||||
remoteRef:
|
||||
key: arn:aws:secretsmanager:ap-northeast-2:723926525504:secret:rds!db-d1d9702f-9c42-4306-9c5b-ec99b91e06d3-ATti1F # master_user_secret_arn
|
||||
key: /finalproj/dev/petclinic-db
|
||||
property: username
|
||||
|
||||
- secretKey: SPRING_DATASOURCE_PASSWORD
|
||||
remoteRef:
|
||||
key: arn:aws:secretsmanager:ap-northeast-2:723926525504:secret:rds!db-d1d9702f-9c42-4306-9c5b-ec99b91e06d3-ATti1F # 같은 ARN
|
||||
property: password
|
||||
key: /finalproj/dev/petclinic-db
|
||||
property: password
|
||||
|
|
@ -33,8 +33,6 @@ spec:
|
|||
|
||||
# DB 설정은 ConfigMap / Secret에서 그대로 가져오기
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: petclinic-db-config
|
||||
- secretRef:
|
||||
name: petclinic-db-secret
|
||||
|
||||
|
|
@ -42,6 +40,8 @@ spec:
|
|||
env:
|
||||
- name: SPRING_PROFILES_ACTIVE
|
||||
value: "postgres"
|
||||
- name: SPRING_DATASOURCE_DRIVER_CLASS_NAME
|
||||
value: "org.postgresql.Driver"
|
||||
|
||||
ports:
|
||||
- name: http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue