diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-05-13 09:33:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-13 09:33:28 +0000 |
commit | 5e487e84e0189c0706a7ef26e44f2870063157e5 (patch) | |
tree | b35b382046eadc6e7c9420d6d4d471186d6f9a27 /kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml | |
parent | c7ede11f1421e265e55f4001fd5fd12d06372afc (diff) | |
parent | 60f25bd891c630a0a3dbbf899bd2aea05338a11f (diff) |
Merge "[MUSIC][CASSANDRA] Use Startup probes"
Diffstat (limited to 'kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml')
-rw-r--r-- | kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml b/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml index 2a1fb4f59e..1aabfb6bcc 100644 --- a/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml +++ b/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml @@ -73,6 +73,17 @@ spec: timeoutSeconds: {{ .Values.readiness.timeoutSeconds }} successThreshold: {{ .Values.readiness.successThreshold }} failureThreshold: {{ .Values.readiness.failureThreshold }} + startupProbe: + exec: + command: + - /bin/bash + - -c + - nodetool status | grep $POD_IP | awk '$1!="UN" { exit 1; }' + initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }} + periodSeconds: {{ .Values.startup.periodSeconds }} + timeoutSeconds: {{ .Values.startup.timeoutSeconds }} + successThreshold: {{ .Values.startup.successThreshold }} + failureThreshold: {{ .Values.startup.failureThreshold }} lifecycle: preStop: exec: |