File tree 3 files changed +25
-3
lines changed
deployment/helm/webapp-polder
3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : {{ include "webapp-polder.fullname" . }}-configmap
5
+ data :
6
+ app_config.js : |
7
+ window.__APP_CONFIG__ = {
8
+ MAPBOX_TOKEN: "{{ .Values.mapboxToken }}",
9
+ STAC_API: "{{ .Values.stacApi }}",
10
+ TILER_API: "{{ .Values.tilerApi }}",
11
+ };
Original file line number Diff line number Diff line change @@ -46,14 +46,20 @@ spec:
46
46
{{- toYaml .Values.readinessProbe | nindent 12 }}
47
47
resources :
48
48
{{- toYaml .Values.resources | nindent 12 }}
49
- {{- with .Values.volumeMounts }}
50
49
volumeMounts :
50
+ {{- with .Values.volumeMounts }}
51
51
{{- toYaml . | nindent 12 }}
52
52
{{- end }}
53
- {{- with .Values.volumes }}
53
+ - name : {{ include "webapp-polder.fullname" . }}-config
54
+ mountPath : /usr/share/nginx/html/app_config.js
55
+ subPath : app_config.js
54
56
volumes :
57
+ {{- with .Values.volumes }}
55
58
{{- toYaml . | nindent 8 }}
56
59
{{- end }}
60
+ - name : {{ include "webapp-polder.fullname" . }}-config
61
+ configMap :
62
+ name : {{ include "webapp-polder.fullname" . }}-configmap
57
63
{{- with .Values.nodeSelector }}
58
64
nodeSelector :
59
65
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ serviceAccount:
32
32
name : " "
33
33
34
34
# This is for setting Kubernetes Annotations to a Pod.
35
- # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
35
+ # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
36
36
podAnnotations : {}
37
37
# This is for setting Kubernetes Labels to a Pod.
38
38
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
@@ -121,3 +121,8 @@ nodeSelector: {}
121
121
tolerations : []
122
122
123
123
affinity : {}
124
+
125
+ # polder custom configuration
126
+ mapboxToken : " token"
127
+ stacApi : " http://localhost:8080"
128
+ tilerApi : " http://localhost:8081"
You can’t perform that action at this time.
0 commit comments