Skip to content

Commit

Permalink
Merge pull request #660 from edgybees/add_additional_configuration_fe…
Browse files Browse the repository at this point in the history
…atures_to_helm_chart

Added HostPath, ImagePullSecret and TerminationGracePeriodSeconds support
  • Loading branch information
ranchodeluxe authored Jun 22, 2023
2 parents 921ca0f + e30143a commit d405395
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/k8s/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.11.7
description: A dynamic Web Map tile server
name: titiler
version: 1.1.0
version: 1.1.1
icon: https://raw.githubusercontent.com/developmentseed/titiler/main/docs/logos/TiTiler_logo_small.png
maintainers:
- name: emmanuelmathot # Emmanuel Mathot
Expand Down
21 changes: 21 additions & 0 deletions deployment/k8s/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,31 @@ spec:
- mountPath: /config
name: config
readOnly: true
{{- range .Values.extraHostPathMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- if .mountPropagation }}
mountPropagation: {{ .mountPropagation }}
{{- end }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.env.terminationGracePeriodSeconds }}
volumes:
- name: config
configMap:
name: {{ include "titiler.fullname" . }}-configmap
{{- range .Values.extraHostPathMounts }}
- name: {{ .name }}
hostPath:
path: {{ .hostPath }}
type: Directory
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ .name }}
{{- end }}
{{- end }}
{{- with .Values.serviceAccountName }}
serviceAccountName: {{ . | quote }}
{{- end }}
Expand Down
11 changes: 11 additions & 0 deletions deployment/k8s/charts/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ ingress:
hosts:
- titiler.charter.uat.esaportal.eu

terminationGracePeriodSeconds: 30

extraHostPathMounts: []
# - name: map-sources
# mountPath: /map-sources/
# hostPath: /home/ubuntu/map-sources
# readOnly: false
# mountPropagation: HostToContainer # OPTIONAL

imagePullSecrets: []

env:
PORT: 80
CPL_TMPDIR: /tmp
Expand Down
11 changes: 11 additions & 0 deletions deployment/k8s/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ image:
nameOverride: ""
fullnameOverride: ""

terminationGracePeriodSeconds: 30

service:
type: ClusterIP
port: 80
Expand All @@ -26,6 +28,15 @@ ingress:
# hosts:
# - titiler.local

extraHostPathMounts: []
# - name: map-sources
# mountPath: /map-sources/
# hostPath: /home/ubuntu/map-sources
# readOnly: false
# mountPropagation: HostToContainer # OPTIONAL

imagePullSecrets: []

env:
PORT: 80
CPL_TMPDIR: /tmp
Expand Down

0 comments on commit d405395

Please sign in to comment.