Skip to content

Commit

Permalink
Merge pull request #34 from alexandrud/osrm-backend
Browse files Browse the repository at this point in the history
force replicas to 1 when in init mode
  • Loading branch information
alexandrud authored Jan 25, 2021
2 parents 1c58ce3 + addc0ed commit 5791602
Show file tree
Hide file tree
Showing 4 changed files with 10 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.6
version: 0.0.7
appVersion: "3.5"
keywords:
- maps
Expand Down
4 changes: 4 additions & 0 deletions charts/nominatim/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ metadata:
labels:
{{- include "nominatim.labels" . | nindent 4 }}
spec:
{{- if .Values.initNominatim }}
replicas: "1"
{{- else }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "nominatim.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/osrm-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: osrm-backend
description: Helm chart for Open Source Routing Machine
type: application
version: 0.1.0
version: 0.1.1
appVersion: "v5.23.0"
keywords:
- maps
Expand Down
4 changes: 4 additions & 0 deletions charts/osrm-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ metadata:
labels:
{{- include "osrm-backend.labels" . | nindent 4 }}
spec:
{{- if .Values.initOsrm }}
replicas: "1"
{{- else }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "osrm-backend.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit 5791602

Please sign in to comment.