Merge "Add timeout to readiness check"
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 6ec282e..88f0c74 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 @@
         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 ff34cbd..ac18195 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 @@
   # 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