From 0850ef656e0fef6574f037a5b925aff843982a17 Mon Sep 17 00:00:00 2001 From: mapuo Date: Wed, 22 May 2019 11:30:10 +0300 Subject: [PATCH] add the bridge connection options to deployment --- charts/account-service/Chart.yaml | 2 +- charts/account-service/templates/deployment.yaml | 6 ++++++ releases/dev/account-service.yaml | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/charts/account-service/Chart.yaml b/charts/account-service/Chart.yaml index 1564648..4881241 100644 --- a/charts/account-service/Chart.yaml +++ b/charts/account-service/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: Deployment of the nynja account service. name: account-service -version: 0.1.0 +version: 0.1.1 diff --git a/charts/account-service/templates/deployment.yaml b/charts/account-service/templates/deployment.yaml index 05a885c..053c82a 100644 --- a/charts/account-service/templates/deployment.yaml +++ b/charts/account-service/templates/deployment.yaml @@ -58,6 +58,12 @@ spec: value: {{ .Values.ports.containerPort.http | quote }} - name: GRPC_SERVER_PORT value: {{ .Values.ports.containerPort.grpc | quote }} + - name: ERLANG_ENABLED + value: {{ .Values.bridge.enabled | quote }} + - name: ERLANG_IP + value: {{ .Values.bridge.host | quote }} + - name: ERLANG_PORT + value: {{ .Values.bridge.port | quote }} resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} diff --git a/releases/dev/account-service.yaml b/releases/dev/account-service.yaml index 2795ec4..4cc8656 100644 --- a/releases/dev/account-service.yaml +++ b/releases/dev/account-service.yaml @@ -8,7 +8,7 @@ spec: chart: repository: https://nynjagroup.jfrog.io/nynjagroup/helm/ name: account-service - version: 0.1.0 + version: 0.1.1 values: replicaCount: 1 @@ -35,6 +35,11 @@ spec: http: 8080 grpc: 6565 + bridge: + enabled: true + host: bridge-service.bridge-service.svc.cluster.local + port: 6570 + # CORS policy corsPolicy: allowOrigin: -- GitLab