diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2018-06-27 10:42:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-06-27 10:42:45 +0000 |
commit | 56e950f4095f8b1be0705e3471d57dd21af06f5d (patch) | |
tree | 03e81c878f3d389b905863a2e7f136c933f081f8 /kubernetes/appc/templates | |
parent | 341e4bd2b7c0b936e984f2de06afbfeea612e945 (diff) | |
parent | 1d464b57ba669528f481ca5aec94720470223b73 (diff) |
Merge "Create readiness health check for readiness probe"
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 |