diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-04-25 15:41:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-25 15:41:12 +0000 |
commit | 8331e6a9722da7f733b93522e457750af06cb171 (patch) | |
tree | ada5e45f7865c2ac979fc82f935a714d26752f6e /kubernetes/sdc/charts/sdc-be/templates/deployment.yaml | |
parent | c50a17fcbba05cf8d73b077f440247a5b6d9aa71 (diff) | |
parent | 51a8b1b6482fda1c0865481b7e04c54023589392 (diff) |
Merge "Adding sdc-onboarding-be to OOM"
Diffstat (limited to 'kubernetes/sdc/charts/sdc-be/templates/deployment.yaml')
-rw-r--r-- | kubernetes/sdc/charts/sdc-be/templates/deployment.yaml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml index d0b8eae768..6c491b773d 100644 --- a/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml +++ b/kubernetes/sdc/charts/sdc-be/templates/deployment.yaml @@ -39,6 +39,10 @@ spec: - "sdc-es" - --container-name - "sdc-cs" + - --container-name + - "sdc-kb" + - --container-name + - "sdc-onboarding-be" env: - name: NAMESPACE valueFrom: @@ -63,23 +67,22 @@ spec: fieldPath: metadata.namespace containers: - name: {{ include "common.name" . }} - image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}" + image: "{{ include "common.repository" . }}/{{ .Values.image }}" 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 eq .Values.liveness.enabled true }} + {{ if eq .Values.liveness.enabled true }} livenessProbe: tcpSocket: port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} - {{ end -}} + {{ end }} readinessProbe: - tcpSocket: - port: {{ .Values.service.internalPort }} + exec: + command: + - "/var/lib/ready-probe.sh" initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} env: @@ -103,6 +106,7 @@ spec: mountPath: /var/log/onap - name: {{ include "common.fullname" . }}-logback mountPath: /tmp/logback.xml + subPath: logback.xml lifecycle: postStart: exec: |