Skip to content

Commit

Permalink
feat: run agg mds import on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Aug 5, 2021
1 parent 99ab647 commit 18db45d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions kube/services/metadata/metadata-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,14 @@ spec:
GEN3_METADATA_IMAGE
imagePullPolicy: Always
volumeMounts:
- name: "config-volume-g3auto"
- name: config-volume-g3auto
readOnly: true
mountPath: "/src/.env"
subPath: "metadata.env"
mountPath: /src/.env
subPath: metadata.env
- name: config-volume
readOnly: true
mountPath: /aggregate_config.json
subPath: aggregate_config.json
resources:
limits:
cpu: 0.8
Expand All @@ -121,3 +125,4 @@ spec:
- "-c"
- |
/env/bin/alembic upgrade head
[ "${USE_AGG_MDS}" = "true" ] && [ -f /aggregate_config.json ] && python /src/src/mds/populate.py --config /aggregate_config.json --hostname esproxy-service --port 9200

0 comments on commit 18db45d

Please sign in to comment.