Skip to content
Snippets Groups Projects
Verified Commit 2f0e4e81 authored by David Hoese's avatar David Hoese
Browse files

Add S3 related env vars to helm chart

parent 0491b988
No related branches found
No related tags found
1 merge request!5Add initial attempt at S3 geotiff reading
Pipeline #39930 passed with stages
in 27 minutes and 45 seconds
......@@ -75,6 +75,28 @@ spec:
value: "/secrets/postgres-password"
{{- end }}
{{- end }}
{{- if .Values.imageSource.s3ConfigMap }}
- name: "AWS_S3_ENDPOINT"
valueFrom:
configMapKeyRef:
name: "{{ .Values.imageSource.s3ConfigMap }}"
key: "{{ .Values.imageSource.s3EndpointHostKey }}:{{ .Values.imageSource.s3EndpointPortKey }}"
{{- else }}
- name: "AWS_S3_ENDPOINT"
value: "{{ .Values.imageSource.s3Endpoint }}"
{{- end }}
{{- if .Values.imageSource.s3Secret }}
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{ .Values.imageSource.s3Secret }}
key: {{ .Values.imageSource.s3AccessKey}}
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.imageSource.s3Secret }}
key: {{ .Values.imageSource.s3SecretKey}}
{{- end }}
volumeMounts:
- name: src
mountPath: "/data"
......
......@@ -21,8 +21,15 @@ database:
postgresPasswordSecret: ""
imageSource:
# not implemented:
s3ConfigMap: ""
s3EndpointHostKey: "BUCKET_HOST"
s3EndpointPortKey: "BUCKET_PORT"
# -- Default endpoint host:port if s3ConfigMap is not specified
s3Endpoint: ""
s3Secret: ""
s3AccessKey: "AWS_ACCESS_KEY_ID"
s3SecretKey: "AWS_SECRET_ACCESS_KEY"
# -- PVC where input geotiffs are stored
existingClaim: ""
tileSource:
# not implemented:
......
imageSource:
s3ConfigMap: "a-config-map"
s3Secret: "a-secret"
database:
postgresHost: "localhost"
postgresPort: 5432
postgresDatabaseName: "postgres"
postgresUser: "postgres"
postgresPasswordSecret: "fake-secret"
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
# ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- host: test
paths:
- path: "/wms"
pathType: ImplementationSpecific
# the test site uses the production WMS server
# - host: geosphere-test.ssec.wisc.edu
# paths: ["/wms", "/wms_times"]
tls:
- hosts:
- "test"
secretName: "test-tls-certs"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment