mirror of
https://github.com/suyiiyii/SIMS.git
synced 2026-05-10 18:59:59 +08:00
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:
@@ -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: {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user