diff --git a/helm/aws-es-proxy/templates/deployment.yaml b/helm/aws-es-proxy/templates/deployment.yaml index 70c2ec12..a2719f07 100644 --- a/helm/aws-es-proxy/templates/deployment.yaml +++ b/helm/aws-es-proxy/templates/deployment.yaml @@ -47,6 +47,18 @@ spec: env: - name: ES_ENDPOINT value: {{ .Values.esEndpoint }} + - name: "AWS_ACCESS_KEY_ID" + valueFrom: + secretKeyRef: + name: {{.Chart.Name}}-aws-config + key: access-key + optional: true + - name: "AWS_SECRET_ACCESS_KEY" + valueFrom: + secretKeyRef: + name: {{.Chart.Name}}-aws-config + key: secret-access-key + optional: true {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 10 }} @@ -74,4 +86,4 @@ spec: fi ${BINARY} -endpoint "https://$ES_ENDPOINT" -verbose -listen ":9200" resources: - {{- toYaml .Values.resources | nindent 12 }} \ No newline at end of file + {{- toYaml .Values.resources | nindent 12 }}