Skip to content

Commit d405395

Browse files
authored
Merge pull request #660 from edgybees/add_additional_configuration_features_to_helm_chart
Added HostPath, ImagePullSecret and TerminationGracePeriodSeconds support
2 parents 921ca0f + e30143a commit d405395

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

deployment/k8s/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 0.11.7
33
description: A dynamic Web Map tile server
44
name: titiler
5-
version: 1.1.0
5+
version: 1.1.1
66
icon: https://raw.githubusercontent.com/developmentseed/titiler/main/docs/logos/TiTiler_logo_small.png
77
maintainers:
88
- name: emmanuelmathot # Emmanuel Mathot

deployment/k8s/charts/templates/deployment.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,31 @@ spec:
4949
- mountPath: /config
5050
name: config
5151
readOnly: true
52+
{{- range .Values.extraHostPathMounts }}
53+
- name: {{ .name }}
54+
mountPath: {{ .mountPath }}
55+
readOnly: {{ .readOnly }}
56+
{{- if .mountPropagation }}
57+
mountPropagation: {{ .mountPropagation }}
58+
{{- end }}
59+
{{- end }}
60+
terminationGracePeriodSeconds: {{ .Values.env.terminationGracePeriodSeconds }}
5261
volumes:
5362
- name: config
5463
configMap:
5564
name: {{ include "titiler.fullname" . }}-configmap
65+
{{- range .Values.extraHostPathMounts }}
66+
- name: {{ .name }}
67+
hostPath:
68+
path: {{ .hostPath }}
69+
type: Directory
70+
{{- end }}
71+
{{- with .Values.imagePullSecrets }}
72+
imagePullSecrets:
73+
{{- range . }}
74+
- name: {{ .name }}
75+
{{- end }}
76+
{{- end }}
5677
{{- with .Values.serviceAccountName }}
5778
serviceAccountName: {{ . | quote }}
5879
{{- end }}

deployment/k8s/charts/values-test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ ingress:
1414
hosts:
1515
- titiler.charter.uat.esaportal.eu
1616

17+
terminationGracePeriodSeconds: 30
18+
19+
extraHostPathMounts: []
20+
# - name: map-sources
21+
# mountPath: /map-sources/
22+
# hostPath: /home/ubuntu/map-sources
23+
# readOnly: false
24+
# mountPropagation: HostToContainer # OPTIONAL
25+
26+
imagePullSecrets: []
27+
1728
env:
1829
PORT: 80
1930
CPL_TMPDIR: /tmp

deployment/k8s/charts/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ image:
99
nameOverride: ""
1010
fullnameOverride: ""
1111

12+
terminationGracePeriodSeconds: 30
13+
1214
service:
1315
type: ClusterIP
1416
port: 80
@@ -26,6 +28,15 @@ ingress:
2628
# hosts:
2729
# - titiler.local
2830

31+
extraHostPathMounts: []
32+
# - name: map-sources
33+
# mountPath: /map-sources/
34+
# hostPath: /home/ubuntu/map-sources
35+
# readOnly: false
36+
# mountPropagation: HostToContainer # OPTIONAL
37+
38+
imagePullSecrets: []
39+
2940
env:
3041
PORT: 80
3142
CPL_TMPDIR: /tmp

0 commit comments

Comments
 (0)