refactor: Update deployment.yaml and secret.yaml for S3 configuration

This commit updates the deployment.yaml and secret.yaml files to include the necessary environment variables for S3 configuration.
This commit is contained in:
2024-09-03 17:15:30 +08:00
parent 59ea6f53ac
commit 243ee4b02f
3 changed files with 34 additions and 0 deletions
+22
View File
@@ -47,4 +47,26 @@ spec:
secretKeyRef:
name: secret
key: jwt.secret
- name: S3_ENDPOINT
valueFrom:
secretKeyRef:
name: secret
key: S3.ENDPOINT
- name: S3_BUCKET
valueFrom:
secretKeyRef:
name: secret
key: S3.BUCKET
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: secret
key: S3.ACCESS_KEY
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
name: secret
key: S3.SECRET_KEY
status: {}
+4
View File
@@ -5,6 +5,10 @@ data:
spring.datasource.password: {{ .Values.spring.datasource.password | b64enc | quote }}
spring.datasource.driver-class-name: {{ .Values.spring.datasource.driverClassName | b64enc | quote }}
jwt.secret: {{ .Values.jwt.secret | b64enc | quote }}
S3.ENDPOINT: {{ .Values.S3.ENDPOINT | b64enc | quote }}
S3.BUCKET: {{ .Values.S3.BUCKET | b64enc | quote }}
S3.ACCESS_KEY: {{ .Values.S3.ACCESS_KEY | b64enc | quote }}
S3.SECRET_KEY: {{ .Values.S3.SECRET_KEY | b64enc | quote }}
kind: Secret
metadata:
creationTimestamp: null