diff options
author | Aaron Hay <ah415j@att.com> | 2018-05-25 14:58:32 -0400 |
---|---|---|
committer | Aaron Hay <ah415j@att.com> | 2018-06-20 10:41:48 -0400 |
commit | 1d464b57ba669528f481ca5aec94720470223b73 (patch) | |
tree | b227837f1cb1722d160ad6284a7a131edbea054d /kubernetes/appc/templates | |
parent | 8494df099dd5bb21519c9cfeaa4730cb5a94e3ef (diff) |
Create readiness health check for readiness probe
New health_check.sh added that allows the readiness probe configured in statefulset.yaml to succeed
Change-Id: I3b619dfc84926bc27381c0b932971b41b12e4269
Issue-ID: OOM-1109
Signed-off-by: Aaron Hay <ah415j@att.com>
Diffstat (limited to 'kubernetes/appc/templates')
-rw-r--r-- | kubernetes/appc/templates/statefulset.yaml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kubernetes/appc/templates/statefulset.yaml b/kubernetes/appc/templates/statefulset.yaml index d2da2ec756..f4409697b3 100644 --- a/kubernetes/appc/templates/statefulset.yaml +++ b/kubernetes/appc/templates/statefulset.yaml @@ -45,8 +45,9 @@ spec: - containerPort: {{ .Values.service.internalPort }} - containerPort: {{ .Values.service.externalPort2 }} readinessProbe: - tcpSocket: - port: {{ .Values.service.internalPort }} + exec: + command: + - /opt/appc/bin/health_check.sh initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} env: @@ -93,6 +94,9 @@ spec: - mountPath: /opt/onap/appc/bin/installAppcDb.sh name: onap-appc-bin subPath: installAppcDb.sh + - mountPath: /opt/onap/appc/bin/health_check.sh + name: onap-appc-bin + subPath: health_check.sh - mountPath: /opt/onap/ccsdk/data/properties/dblib.properties name: onap-sdnc-data-properties subPath: dblib.properties |