aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNelson, Thomas (tn1381) <tn1381@att.com>2019-05-30 12:31:19 -0400
committerNelson, Thomas (tn1381) <tn1381@att.com>2019-05-30 18:13:52 -0400
commita6cb617430a0686cb2093de6eb31761dfad4089b (patch)
tree8f0224675ee870e39a5f9805c1b08eb1ef1f9ff6
parentc1b40a1f0739d127189dacc160e53e74ae7ae6c4 (diff)
Add timeout to readiness check
Add quotes around value. Seems that its expecting a string input. Issue-ID: MUSIC-403 Signed-off-by: Nelson, Thomas (tn1381) <tn1381@att.com> Change-Id: I45d318072f76066bf995f1d973cbbdba5fe53f7e Signed-off-by: Nelson, Thomas (tn1381) <tn1381@att.com>
-rw-r--r--kubernetes/common/music/charts/music-cassandra-job/templates/job.yaml2
-rw-r--r--kubernetes/common/music/charts/music-cassandra-job/values.yaml4
2 files changed, 5 insertions, 1 deletions
diff --git a/kubernetes/common/music/charts/music-cassandra-job/templates/job.yaml b/kubernetes/common/music/charts/music-cassandra-job/templates/job.yaml
index 6ec282e44e..88f0c7465f 100644
--- a/kubernetes/common/music/charts/music-cassandra-job/templates/job.yaml
+++ b/kubernetes/common/music/charts/music-cassandra-job/templates/job.yaml
@@ -39,6 +39,8 @@ spec:
command:
- /root/ready.py
args:
+ - --timeout
+ - "{{ .Values.global.readinessTimeout }}"
- --container-name
- music-cassandra
env:
diff --git a/kubernetes/common/music/charts/music-cassandra-job/values.yaml b/kubernetes/common/music/charts/music-cassandra-job/values.yaml
index ff34cbd5bf..ac18195939 100644
--- a/kubernetes/common/music/charts/music-cassandra-job/values.yaml
+++ b/kubernetes/common/music/charts/music-cassandra-job/values.yaml
@@ -22,7 +22,9 @@ global:
# readiness check
readinessRepository: oomk8s
readinessImage: readiness-check:2.0.0
-
+ # Set default to 4 hrs.
+ # On slow environments dealys this long have been seen.
+ readinessTimeout: 240
# logging agent
loggingRepository: docker.elastic.co
loggingImage: beats/filebeat:5.5.0