mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +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:
		
							parent
							
								
									59ea6f53ac
								
							
						
					
					
						commit
						243ee4b02f
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,14 @@ spring:
 | 
			
		||||
    driverClassName: ""
 | 
			
		||||
jwt:
 | 
			
		||||
  secret: ""
 | 
			
		||||
 | 
			
		||||
S3:
 | 
			
		||||
  ENDPOINT: ""
 | 
			
		||||
  BUCKET: ""
 | 
			
		||||
  ACCESS_KEY: ""
 | 
			
		||||
  SECRET_KEY: ""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
replicaCount: 1
 | 
			
		||||
image:
 | 
			
		||||
  repository: ghcr.io/suyiiyii/sims
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user