From 018e15bd3daad54121e9f9a6cf6d904eaf9a705e Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 6 Jul 2020 20:09:41 +0200 Subject: Manage Ims service dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6647d9acfabd2ce2d12ff2f30393c2de8f6165ff Signed-off-by: Cédric Ollivier (cherry picked from commit 68b2a9ac43003840ae0b88bf3b2cd6c1fc10db21) --- functest_kubernetes/ims/cassandra-depl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'functest_kubernetes/ims/cassandra-depl.yaml') diff --git a/functest_kubernetes/ims/cassandra-depl.yaml b/functest_kubernetes/ims/cassandra-depl.yaml index 053bd3f3..4e415ad7 100644 --- a/functest_kubernetes/ims/cassandra-depl.yaml +++ b/functest_kubernetes/ims/cassandra-depl.yaml @@ -12,6 +12,16 @@ spec: labels: service: cassandra spec: + initContainers: + - name: wait-on-etcd + image: busybox:1.28 + command: ['sh', '-c', 'until nslookup etcd; do echo waiting for etcd to start ...; sleep 2; done'] + - name: wait-on-astaire + image: busybox:1.28 + command: ['sh', '-c', 'until nslookup astaire; do echo waiting for astaire to start ...; sleep 2; done'] + - name: wait-on-chronos + image: busybox:1.28 + command: ['sh', '-c', 'until nslookup chronos; do echo waiting for chronos to start ...; sleep 2; done'] containers: - image: "ollivier/clearwater-cassandra:latest" imagePullPolicy: Always -- cgit 1.2.3-korg