Improve kubernetes for prod
This commit is contained in:
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for inventory-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-inventory-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for inventory-service to be ready..."
|
||||
until curl -f http://inventory-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "inventory-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "inventory-service is ready!"
|
||||
containers:
|
||||
- name: seed-inventory
|
||||
image: bakery/inventory-service:latest
|
||||
|
||||
Reference in New Issue
Block a user