diff --git a/scripts/docker-compose/integrations.env b/scripts/docker-compose/integrations.env index b031dcd1b..0bc758992 100644 --- a/scripts/docker-compose/integrations.env +++ b/scripts/docker-compose/integrations.env @@ -1,3 +1,8 @@ +AWS_ACCESS_KEY_ID=${COMMON_S3_KEY} +AWS_SECRET_ACCESS_KEY=${COMMON_S3_SECRET} +AWS_ENDPOINT='http://minio:9000' +AWS_REGION='us-east-1' +BUCKET_NAME=mobs LICENSE_KEY='' KAFKA_SERVERS='kafka.db.svc.cluster.local:9092' KAFKA_USE_SSL='false' diff --git a/scripts/helmcharts/openreplay/charts/integrations/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/integrations/templates/deployment.yaml index 47aaa739c..6532a4683 100644 --- a/scripts/helmcharts/openreplay/charts/integrations/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/integrations/templates/deployment.yaml @@ -43,6 +43,30 @@ spec: {{- .Values.healthCheck | toYaml | nindent 10}} {{- end}} env: + - name: AWS_ACCESS_KEY_ID + {{- if .Values.global.s3.existingSecret }} + valueFrom: + secretKeyRef: + name: {{ .Values.global.s3.existingSecret }} + key: access-key + {{- else }} + value: {{ .Values.global.s3.accessKey }} + {{- end }} + - name: AWS_SECRET_ACCESS_KEY + {{- if .Values.global.s3.existingSecret }} + valueFrom: + secretKeyRef: + name: {{ .Values.global.s3.existingSecret }} + key: secret-key + {{- else }} + value: {{ .Values.global.s3.secretKey }} + {{- end }} + - name: AWS_ENDPOINT + value: '{{ .Values.global.s3.endpoint }}' + - name: AWS_REGION + value: '{{ .Values.global.s3.region }}' + - name: BUCKET_NAME + value: {{ .Values.global.s3.recordingsBucket }} - name: JWT_SECRET value: '{{ .Values.global.jwtSecret }}' - name: LICENSE_KEY