cleaned initcontainers

This commit is contained in:
Daniel Sanche 2020-01-22 11:40:37 -08:00
parent 3026d2f88c
commit 8d269f3736
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,6 @@ spec:
command: ['/bin/sh', '-c']
args:
- until redis-cli -h redis-cart -p 6379 ping; do echo waiting for redis-cart; sleep 2; done
#- for i in {1..100}; do sleep 1; if redis-cli -h redis-cart -p 6379 ping; then exit 0; fi; done; exit 1
containers:
- name: server
image: cartservice

View file

@ -32,7 +32,9 @@ spec:
initContainers:
- name: init-frontend-ready
image: busybox:1.28
command: ['sh', '-c', 'until [[ "$(wget --spider -S http://frontend 2>&1 | grep HTTP/)" == " HTTP/1.1 200 OK" ]]; do echo waiting for frontend; sleep 2; done;']
command: ['/bin/sh', '-c']
args:
- until [[ "$(wget --spider -S http://frontend 2>&1 | grep HTTP/)" == " HTTP/1.1 200 OK" ]]; do echo waiting for frontend; sleep 2; done
containers:
- name: main
image: loadgenerator