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: ...@@ -14,11 +14,15 @@ spec:
spec: spec:
containers: containers:
- name: afp-inventory-ui-container - name: afp-inventory-ui-container
image: nexus.mynisum.com/afp-inventory-ui:15 image: nexus.mynisum.com/afp-inventory-ui:16
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8081 - containerPort: 8081
env:
- name: PROMOTIONS_BACKEND_URI
value: "10.0.191.126:8082"
- name: INVENTORY_BACKEND_URI
value: "10.0.148.232:8083"
imagePullSecrets: imagePullSecrets:
- name: registry-creds - name: registry-creds
--- ---
......
class Config { class Config {
static inventoryUrl = "http://138.91.157.244:8083/api/products"; static inventoryUrl = `http://${process.env.INVENTORY_BACKEND_URI}/api/products`;
static promotionsUrl = "http://168.62.203.53:8082/api/promos"; static promotionsUrl = `http://${process.env.PROMOTIONS_BACKEND_URI}/api/promos`;
static sessionUrl = "http://localhost:8080/api/sessions"; 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