aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorYang Xu <yxu@futurewei.com>2019-05-31 01:18:45 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-31 01:18:45 +0000
commit0b904977dde761d189874d6dc6c527cd45928d92 (patch)
tree4df3d0ac798111d5711dece065dc54acab4a37c3 /kubernetes
parente4e0909879deef52536c95310fcb56874fc150a7 (diff)
parenta6cb617430a0686cb2093de6eb31761dfad4089b (diff)
Merge "Add timeout to readiness check"
Diffstat (limited to 'kubernetes')
-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