From d4a04f68b1722cc938cb764e2c1ff80ad003ebfd Mon Sep 17 00:00:00 2001 From: Ioan Damian Date: Mon, 25 Jan 2021 19:40:29 +0200 Subject: [PATCH] disable healthchecks when running with init:true --- charts/nominatim/Chart.yaml | 2 +- charts/nominatim/templates/deployment.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/nominatim/Chart.yaml b/charts/nominatim/Chart.yaml index 9b79644..91f1fdf 100644 --- a/charts/nominatim/Chart.yaml +++ b/charts/nominatim/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: nominatim description: Helm chart for Nominatim type: application -version: 0.0.3 +version: 0.0.4 appVersion: "3.4" keywords: - maps diff --git a/charts/nominatim/templates/deployment.yaml b/charts/nominatim/templates/deployment.yaml index 9adf8aa..38d07f2 100644 --- a/charts/nominatim/templates/deployment.yaml +++ b/charts/nominatim/templates/deployment.yaml @@ -44,7 +44,8 @@ spec: wget http://download.geofabrik.de/europe/romania-latest.osm.pbf && cd $OLDPWD && /bin/bash /app/init.sh /data/romania-latest.osm.pbf postgresdata 3 && - mv /data/postgresdata/* /data/ + mv /data/postgresdata/* /data/ && + rm -rf /data/romania-latest.osm.pbf {{- else }} - /bin/bash - /app/start.sh @@ -60,12 +61,14 @@ spec: - name: http containerPort: {{ .Values.containerPort }} protocol: TCP + {{- if not .Values.initNominatim }} livenessProbe: tcpSocket: port: http readinessProbe: tcpSocket: port: http + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: