Update vfc charts configutation 51/42651/6
authoryangyan <yangyanyj@chinamobile.com>
Fri, 13 Apr 2018 04:16:40 +0000 (12:16 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Wed, 18 Apr 2018 01:11:11 +0000 (09:11 +0800)
Change-Id: I79dc1c5d26692fe675ca4cf2779fc78eac557a45
Issue-ID: VFC-879
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
kubernetes/vfc/charts/vfc-ems-driver/templates/deployment.yaml
kubernetes/vfc/charts/vfc-ems-driver/values.yaml
kubernetes/vfc/charts/vfc-huawei-vnfm-driver/templates/deployment.yaml

index ba33ec5..287f0a7 100644 (file)
@@ -69,6 +69,10 @@ spec:
           env:
             - name: MSB_ADDR
               value: "{{ .Values.global.config.msbServiceName }}:{{ .Values.global.config.msbPort }}"
+            - name: VES_ADDR
+              value: "{{ .Values.config.vescollectorServiceName }}:{{ .Values.config.vescollectorPort }}"
+            - name: VES_AUTHINFO
+              value: "{{ .Values.config.vescollectorUser }}:{{ .Values.config.vescollectorPassword }}"
           resources:
 {{ toYaml .Values.resources | indent 12 }}
         {{- if .Values.nodeSelector }}
index d73a72b..c44fc75 100644 (file)
@@ -35,7 +35,11 @@ pullPolicy: Always
 debugEnabled: false
 
 # application configuration
-config: {}
+config:
+  vescollectorServiceName: dcae-ves-collector
+  vescollectorPort: 8080
+  vescollectorUser: ""
+  vescollectorPassword: ""
 
 # default number of instances
 replicaCount: 1
index eed1906..28b5950 100644 (file)
@@ -52,6 +52,7 @@ spec:
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           ports:
           - containerPort: {{ .Values.service.internalPort }}
+          - containerPort: {{ .Values.service.internalPort2 }}
           # disable liveness probe when breakpoints set in debugger
           # so K8s doesn't restart unresponsive container
           {{ if .Values.liveness.enabled }}