From 0649b341c219cf22c8c5dc2252ebb4bd1c00ecc0 Mon Sep 17 00:00:00 2001 From: Jesse Young Date: Sat, 2 Nov 2019 16:09:10 -0700 Subject: [PATCH] use kubernetes configmap to store production config --- kubernetes/orion-deployment.yaml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/kubernetes/orion-deployment.yaml b/kubernetes/orion-deployment.yaml index f940cdc..cf91dd6 100644 --- a/kubernetes/orion-deployment.yaml +++ b/kubernetes/orion-deployment.yaml @@ -27,26 +27,10 @@ spec: cpu: 0.03 env: - name: ORION_CONFIG_JSON - value: > - { - "s3_bucket": "orion-vehicles", - "agencies": [ - { - "id": "muni", - "provider": "nextbus", - "nextbus_agency_id": "sf-muni" - }, - { - "id": "ttc", - "provider": "nextbus", - "nextbus_agency_id": "ttc" - }, - { - "id": "marin", - "provider": "marin" - } - ] - } + valueFrom: + configMapKeyRef: + name: orion + key: orion_config_json - name: AWS_ACCESS_KEY_ID valueFrom: secretKeyRef: