Commit 5943d901 authored by Ben Anderson's avatar Ben Anderson

Updated deployment and config files to use env variables for cross service connections

parent bdbe88dc
......@@ -14,11 +14,15 @@ spec:
spec:
containers:
- name: afp-inventory-ui-container
image: nexus.mynisum.com/afp-inventory-ui:15
image: nexus.mynisum.com/afp-inventory-ui:16
imagePullPolicy: Always
ports:
- containerPort: 8081
env:
- name: PROMOTIONS_BACKEND_URI
value: "10.0.191.126:8082"
- name: INVENTORY_BACKEND_URI
value: "10.0.148.232:8083"
imagePullSecrets:
- name: registry-creds
---
......
class Config {
static inventoryUrl = "http://138.91.157.244:8083/api/products";
static promotionsUrl = "http://168.62.203.53:8082/api/promos";
static inventoryUrl = `http://${process.env.INVENTORY_BACKEND_URI}/api/products`;
static promotionsUrl = `http://${process.env.PROMOTIONS_BACKEND_URI}/api/promos`;
static sessionUrl = "http://localhost:8080/api/sessions";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment