#!/bin/bash
# Roll out the bikoret deployment and wait for 3/3 + two consecutive 200s (memory lesson).
set -e
export KUBECONFIG=$HOME/.kube/exoscale-temple-council.yaml
kubectl -n shorashim rollout restart deployment/shorashim
kubectl -n shorashim rollout status deployment/shorashim --timeout=300s
kubectl -n shorashim get pods | grep bikoret-
for i in 1 2; do sleep 5; curl -s -o /dev/null -w "%{http_code} " http://185.19.28.170/kodesh/health; done; echo
