Skip to content

Commit

Permalink
chore(helm,docker-compose,env): update mgmt-backend env in helm chart…
Browse files Browse the repository at this point in the history
…s and docker-compose
  • Loading branch information
donch1989 committed Sep 6, 2023
1 parent 8d85e6c commit c0feddc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ MODEL_BACKEND_PUBLICPORT=8083
# mgmt-backend
MGMT_BACKEND_HOST=mgmt-backend
MGMT_BACKEND_PRIVATEPORT=3084
MGMT_BACKEND_PUBLICPORT=8084

# controller-vdp
CONTROLLER_VDP_IMAGE=instill/controller-vdp
Expand Down
4 changes: 4 additions & 0 deletions charts/vdp/templates/api-gateway-vdp/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ data:
CONNECTOR_BACKEND_HOST={{ template "vdp.connectorBackend" . }}
CONNECTOR_BACKEND_PUBLICPORT={{ template "vdp.connectorBackend.publicPort" . }}
# mgmt-backend
MGMT_BACKEND_HOST={{ template "base.mgmtBackend" . }}
MGMT_BACKEND_PUBLICPORT={{ template "base.mgmtBackend.publicPort" . }}
# influxdb
INFLUXDB_HOST={{ template "base.influxdb" . }}
INFLUXDB_PORT={{ template "base.influxdb.port" . }}
Expand Down
5 changes: 5 additions & 0 deletions charts/vdp/templates/api-gateway-vdp/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${PIPELINE_BACKEND_HOST}:${PIPELINE_BACKEND_PORT}/v1alpha/health/pipeline)" != "200" ]]; do echo waiting for pipeline-backend; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${CONNECTOR_BACKEND_HOST}:${CONNECTOR_BACKEND_PORT}/v1alpha/health/connector)" != "200" ]]; do echo waiting for connector-backend; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${CONTROLLER_VDP_HOST}:${CONTROLLER_VDP_PORT}/v1alpha/health/controller)" != "200" ]]; do echo waiting for controller-vdp; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${MGMT_BACKEND_HOST}:${MGMT_BACKEND_PORT}/v1alpha/health/mgmt)" != "200" ]]; do echo waiting for mgmt-backend; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${INFLUXDB_HOST}:${INFLUXDB_PORT}/health)" != "200" ]]; do echo waiting for influxdb; sleep 1; done
env:
- name: PIPELINE_BACKEND_HOST
Expand All @@ -66,6 +67,10 @@ spec:
value: "{{ template "vdp.controllerVDP" . }}"
- name: CONTROLLER_VDP_PORT
value: "{{ template "vdp.controllerVDP.privatePort" . }}"
- name: MGMT_BACKEND_HOST
value: "{{ template "base.mgmtBackend" . }}"
- name: MGMT_BACKEND_PORT
value: "{{ template "base.mgmtBackend.publicPort" . }}"
- name: INFLUXDB_HOST
value: "{{ template "base.influxdb" . }}"
- name: INFLUXDB_PORT
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
PIPELINE_BACKEND_PUBLICPORT: ${PIPELINE_BACKEND_PUBLICPORT}
CONNECTOR_BACKEND_HOST: ${CONNECTOR_BACKEND_HOST}
CONNECTOR_BACKEND_PUBLICPORT: ${CONNECTOR_BACKEND_PUBLICPORT}
MGMT_BACKEND_HOST: ${MGMT_BACKEND_HOST}
MGMT_BACKEND_PUBLICPORT: ${MGMT_BACKEND_PUBLICPORT}
INFLUXDB_HOST: ${INFLUXDB_HOST}
INFLUXDB_PORT: ${INFLUXDB_PORT}
JAEGER_ENABLED: ${OBSERVE_ENABLED}
Expand Down

0 comments on commit c0feddc

Please sign in to comment.