Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Pass pelias.json config to interpolation service
Browse files Browse the repository at this point in the history
This allows using the libpostal service
  • Loading branch information
orangejulius committed Oct 4, 2019
1 parent db33803 commit 655ca3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/interpolation-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
labels:
app: pelias-interpolation
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.tpl") . | sha256sum }}
{{- if .Values.interpolation.annotations }}
{{ toYaml .Values.interpolation.annotations | indent 8 }}
{{- end }}
Expand Down Expand Up @@ -41,6 +42,11 @@ spec:
volumeMounts:
- name: data-volume
mountPath: /data
- name: config-volume
mountPath: /etc/config
env:
- name: PELIAS_CONFIG
value: "/etc/config/pelias.json"
resources:
limits:
memory: 3Gi
Expand All @@ -56,5 +62,11 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
- name: config-volume
configMap:
name: pelias-json-configmap
items:
- key: pelias.json
path: pelias.json
nodeSelector:
{{ toYaml .Values.interpolation.nodeSelector | indent 8 }}

0 comments on commit 655ca3f

Please sign in to comment.