diff --git a/deployment/k8s/charts/Chart.yaml b/deployment/k8s/charts/Chart.yaml index febe06e3e..5470f4a0d 100644 --- a/deployment/k8s/charts/Chart.yaml +++ b/deployment/k8s/charts/Chart.yaml @@ -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 diff --git a/deployment/k8s/charts/templates/deployment.yaml b/deployment/k8s/charts/templates/deployment.yaml index 9858c13a6..5fa7255bc 100644 --- a/deployment/k8s/charts/templates/deployment.yaml +++ b/deployment/k8s/charts/templates/deployment.yaml @@ -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 }} diff --git a/deployment/k8s/charts/values-test.yaml b/deployment/k8s/charts/values-test.yaml index 47bd601e4..b8865ba9c 100644 --- a/deployment/k8s/charts/values-test.yaml +++ b/deployment/k8s/charts/values-test.yaml @@ -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 diff --git a/deployment/k8s/charts/values.yaml b/deployment/k8s/charts/values.yaml index b10995183..b161b8534 100644 --- a/deployment/k8s/charts/values.yaml +++ b/deployment/k8s/charts/values.yaml @@ -9,6 +9,8 @@ image: nameOverride: "" fullnameOverride: "" +terminationGracePeriodSeconds: 30 + service: type: ClusterIP port: 80 @@ -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