Skip to content

Commit

Permalink
disable healthchecks when running with init:true
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioan Damian committed Jan 25, 2021
1 parent beb57b2 commit d4a04f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nominatim/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion charts/nominatim/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit d4a04f6

Please sign in to comment.