Improve kubernetes for prod
This commit is contained in:
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for training-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-inventory-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-training-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-inventory to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for training-service to be ready..."
|
||||
until curl -f http://training-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "training-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "training-service is ready!"
|
||||
containers:
|
||||
- name: seed-ai-models
|
||||
image: bakery/training-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for orders-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-orders-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for orders-service to be ready..."
|
||||
until curl -f http://orders-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "orders-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "orders-service is ready!"
|
||||
containers:
|
||||
- name: seed-customers
|
||||
image: bakery/orders-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for production-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-production-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for production-service to be ready..."
|
||||
until curl -f http://production-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "production-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "production-service is ready!"
|
||||
containers:
|
||||
- name: seed-equipment
|
||||
image: bakery/production-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for forecasting-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-forecasting-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for forecasting-service to be ready..."
|
||||
until curl -f http://forecasting-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "forecasting-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "forecasting-service is ready!"
|
||||
containers:
|
||||
- name: seed-forecasts
|
||||
image: bakery/forecasting-service:latest
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "⏳ Waiting 30 seconds for orchestrator-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-procurement-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-orchestrator-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "⏳ Waiting 15 seconds for demo-seed-procurement-plans to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for orchestrator-service to be ready..."
|
||||
until curl -f http://orchestrator-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "orchestrator-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "orchestrator-service is ready!"
|
||||
containers:
|
||||
- name: seed-orchestration-runs
|
||||
image: bakery/orchestrator-service:latest
|
||||
|
||||
@@ -17,22 +17,18 @@ spec:
|
||||
app: demo-seed-orchestrator
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-orchestrator-migration
|
||||
image: busybox:1.36
|
||||
- name: wait-for-orchestrator-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "⏳ Waiting 30 seconds for orchestrator-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-procurement-seed
|
||||
image: busybox:1.36
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "⏳ Waiting 15 seconds for demo-seed-procurement to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for orchestrator-service to be ready..."
|
||||
until curl -f http://orchestrator-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "orchestrator-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "orchestrator-service is ready!"
|
||||
containers:
|
||||
- name: seed-orchestrator
|
||||
image: bakery/orchestrator-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for orders-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-customers-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-orders-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 20 seconds for demo-seed-customers to complete..."
|
||||
sleep 20
|
||||
echo "Waiting for orders-service to be ready..."
|
||||
until curl -f http://orders-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "orders-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "orders-service is ready!"
|
||||
containers:
|
||||
- name: seed-orders
|
||||
image: bakery/orders-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for pos-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-orders-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-pos-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 20 seconds for demo-seed-orders to complete..."
|
||||
sleep 20
|
||||
echo "Waiting for pos-service to be ready..."
|
||||
until curl -f http://pos-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "pos-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "pos-service is ready!"
|
||||
containers:
|
||||
- name: seed-pos-configs
|
||||
image: bakery/pos-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for procurement-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-suppliers-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-procurement-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-suppliers to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for procurement-service to be ready..."
|
||||
until curl -f http://procurement-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "procurement-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "procurement-service is ready!"
|
||||
containers:
|
||||
- name: seed-procurement-plans
|
||||
image: bakery/procurement-service:latest
|
||||
|
||||
@@ -25,22 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for production-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-production-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
- name: wait-for-recipes-seed
|
||||
image: busybox:1.36
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 10 seconds for recipes seed to complete..."
|
||||
sleep 10
|
||||
echo "Waiting for production-service to be ready..."
|
||||
until curl -f http://production-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "production-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "production-service is ready!"
|
||||
containers:
|
||||
- name: seed-production-batches
|
||||
image: bakery/production-service:latest
|
||||
|
||||
@@ -17,14 +17,18 @@ spec:
|
||||
app: demo-seed-purchase-orders
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-procurement-plans-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-procurement-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 30 seconds for demo-seed-procurement-plans to complete..."
|
||||
sleep 30
|
||||
echo "Waiting for procurement-service to be ready..."
|
||||
until curl -f http://procurement-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "procurement-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "procurement-service is ready!"
|
||||
containers:
|
||||
- name: seed-purchase-orders
|
||||
image: bakery/procurement-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for production-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-production-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-tenants to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for production-service to be ready..."
|
||||
until curl -f http://production-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "production-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "production-service is ready!"
|
||||
containers:
|
||||
- name: seed-quality-templates
|
||||
image: bakery/production-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for recipes-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-inventory-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-recipes-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-inventory to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for recipes-service to be ready..."
|
||||
until curl -f http://recipes-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "recipes-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "recipes-service is ready!"
|
||||
containers:
|
||||
- name: seed-recipes
|
||||
image: bakery/recipes-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for sales-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-inventory-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-sales-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-inventory to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for sales-service to be ready..."
|
||||
until curl -f http://sales-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "sales-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "sales-service is ready!"
|
||||
containers:
|
||||
- name: seed-sales
|
||||
image: bakery/sales-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for inventory-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-inventory-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-inventory-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-inventory 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-stock
|
||||
image: bakery/inventory-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for suppliers-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-inventory-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-suppliers-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-inventory to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for suppliers-service to be ready..."
|
||||
until curl -f http://suppliers-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "suppliers-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "suppliers-service is ready!"
|
||||
containers:
|
||||
- name: seed-suppliers
|
||||
image: bakery/suppliers-service:latest
|
||||
|
||||
@@ -17,22 +17,18 @@ spec:
|
||||
app: demo-seed-tenant-members
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-tenant-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-tenant-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 45 seconds for demo-seed-tenants to complete..."
|
||||
sleep 45
|
||||
- name: wait-for-user-seed
|
||||
image: busybox:1.36
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-users to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for tenant-service to be ready..."
|
||||
until curl -f http://tenant-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "tenant-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "tenant-service is ready!"
|
||||
containers:
|
||||
- name: seed-tenant-members
|
||||
image: bakery/tenant-service:latest
|
||||
|
||||
@@ -25,14 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for tenant-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-user-seed
|
||||
image: busybox:1.36
|
||||
- name: wait-for-tenant-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 15 seconds for demo-seed-users to complete..."
|
||||
sleep 15
|
||||
echo "Waiting for tenant-service to be ready..."
|
||||
until curl -f http://tenant-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "tenant-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "tenant-service is ready!"
|
||||
containers:
|
||||
- name: seed-tenants
|
||||
image: bakery/tenant-service:latest
|
||||
|
||||
@@ -25,6 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for auth-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-auth-service
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting for auth-service to be ready..."
|
||||
until curl -f http://auth-service.bakery-ia.svc.cluster.local:8000/health/ready > /dev/null 2>&1; do
|
||||
echo "auth-service not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "auth-service is ready!"
|
||||
containers:
|
||||
- name: seed-users
|
||||
image: bakery/auth-service:latest
|
||||
|
||||
@@ -36,6 +36,18 @@ spec:
|
||||
name: bakery-config
|
||||
- secretRef:
|
||||
name: database-secrets
|
||||
- name: wait-for-migration
|
||||
image: postgres:17-alpine
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting for external-service migration to complete..."
|
||||
sleep 15
|
||||
echo "Migration should be complete"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: bakery-config
|
||||
|
||||
containers:
|
||||
- name: data-loader
|
||||
|
||||
Reference in New Issue
Block a user