diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-08-20 12:57:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-20 12:57:53 +0000 |
commit | f58657826975b50371bf3c2ffcb48aab617f925d (patch) | |
tree | c9f093fef5321807e97d7f9dfc9620497b2db00c /kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml | |
parent | 4b2198846e6c12b5d807e598754f98b669583d80 (diff) | |
parent | 63070de94f794ec83ad76e1dca999d2938973e10 (diff) |
Merge "Add VFC DB helm charts"
Diffstat (limited to 'kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml')
-rw-r--r-- | kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml b/kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml index 10a5e7a9ff..767b709db5 100644 --- a/kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml +++ b/kubernetes/vfc/charts/vfc-vnfres/templates/deployment.yaml @@ -33,21 +33,20 @@ spec: sidecar.istio.io/inject: "{{.Values.istioSidecar}}" spec: initContainers: -#Example init container for dependency checking -# - command: -# - /root/ready.py -# args: -# - --container-name -# - mariadb -# env: -# - name: NAMESPACE -# valueFrom: -# fieldRef: -# apiVersion: v1 -# fieldPath: metadata.namespace -# image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" -# imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} -# name: {{ include "common.name" . }}-readiness + - command: + - /root/ready.py + args: + - --container-name + - vfc-db + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" + imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + name: {{ include "common.name" . }}-readiness containers: - name: {{ include "common.name" . }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" @@ -71,6 +70,8 @@ spec: env: - name: MSB_ADDR value: "{{ .Values.global.config.msbServiceName }}:{{ .Values.global.config.msbPort }}" + - name: MYSQL_ADDR + value: "{{ .Values.global.config.dbServiceName }}:{{ .Values.global.config.dbPort }}" volumeMounts: - name: {{ include "common.fullname" . }}-localtime mountPath: /etc/localtime |