New alert service
This commit is contained in:
@@ -25,18 +25,18 @@ spec:
|
||||
- |
|
||||
echo "Waiting 30 seconds for alert-processor-migration to complete..."
|
||||
sleep 30
|
||||
- name: wait-for-alert-processor-api
|
||||
- name: wait-for-alert-processor
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting for alert-processor-api to be ready..."
|
||||
until curl -f http://alert-processor-api.bakery-ia.svc.cluster.local:8010/health > /dev/null 2>&1; do
|
||||
echo "alert-processor-api not ready yet, waiting..."
|
||||
echo "Waiting for alert-processor to be ready..."
|
||||
until curl -f http://alert-processor.bakery-ia.svc.cluster.local:8000/health > /dev/null 2>&1; do
|
||||
echo "alert-processor not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "alert-processor-api is ready!"
|
||||
echo "alert-processor is ready!"
|
||||
containers:
|
||||
- name: seed-alerts
|
||||
image: bakery/alert-processor:latest
|
||||
|
||||
@@ -18,18 +18,18 @@ spec:
|
||||
app: demo-seed-alerts-retail
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-alert-processor-service
|
||||
- name: wait-for-alert-processor
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting for alert-processor-api to be ready..."
|
||||
until curl -f http://alert-processor-api.bakery-ia.svc.cluster.local:8010/health > /dev/null 2>&1; do
|
||||
echo "alert-processor-api not ready yet, waiting..."
|
||||
echo "Waiting for alert-processor to be ready..."
|
||||
until curl -f http://alert-processor.bakery-ia.svc.cluster.local:8000/health > /dev/null 2>&1; do
|
||||
echo "alert-processor not ready yet, waiting..."
|
||||
sleep 5
|
||||
done
|
||||
echo "alert-processor-api is ready!"
|
||||
echo "alert-processor is ready!"
|
||||
containers:
|
||||
- name: seed-alerts-retail
|
||||
image: bakery/alert-processor:latest
|
||||
|
||||
Reference in New Issue
Block a user