Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review of webapp helm charts #15

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions deployment/helm/webapp-polder/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "webapp-polder.fullname" . }}-configmap
data:
app_config.js: |
window.__APP_CONFIG__ = {
MAPBOX_TOKEN: "{{ .Values.mapboxToken }}",
STAC_API: "{{ .Values.stacApi }}",
TILER_API: "{{ .Values.tilerApi }}",
};
10 changes: 8 additions & 2 deletions deployment/helm/webapp-polder/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,20 @@ spec:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
- name: {{ include "webapp-polder.fullname" . }}-config
mountPath: /usr/share/nginx/html/app_config.js
subPath: app_config.js
volumes:
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
- name: {{ include "webapp-polder.fullname" . }}-config
configMap:
name: {{ include "webapp-polder.fullname" . }}-configmap
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
7 changes: 6 additions & 1 deletion deployment/helm/webapp-polder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ serviceAccount:
name: ""

# This is for setting Kubernetes Annotations to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
# This is for setting Kubernetes Labels to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Expand Down Expand Up @@ -121,3 +121,8 @@ nodeSelector: {}
tolerations: []

affinity: {}

# polder custom configuration
mapboxToken: "token"
stacApi: "http://localhost:8080"
tilerApi: "http://localhost:8081"
Loading