new script, new bootstrap

This commit is contained in:
Benjamin Arntzen 2024-09-16 07:07:10 -04:00
parent 36e9e6d324
commit 6984ae546f
2 changed files with 19 additions and 2 deletions

View File

@ -21,7 +21,7 @@ spec:
- zerotesting-bootstrap.zerotesting.svc.cluster.local
containers:
- name: waku
image: zorlin/waku:debug-extra-nim-libp2p-logs-over-v0.31.0-with-extra-logs-mplex-perf
image: zorlin/nwaku:v0.32.0-curl
imagePullPolicy: Always
readinessProbe:
exec:

View File

@ -7,4 +7,21 @@ kubectl apply -f nodes-nwaku.yaml
kubectl apply -f nodes-gowaku.yaml
echo "We have deployed all nodes, please watch Prometheus or Grafana to see when they have reached a healthy state."
kubectl rollout status --watch --timeout=30000s statefulset/nodes -n zerotesting
kubectl apply -f publisher.yaml
echo "We believe everything has rolled out. Deploying publisher now."
kubectl apply -f publisher.yaml
echo "We have deployed the publisher, please watch Grafana to see if it's working."
# 2100 seconds or 35 minutes
for i in {0..209}
do
timeelapsed=$(10*(i+1))
echo "Sleeping for 10 seconds, $timeelapsed/2100 seconds"
sleep 10
done
# Tear down publisher
kubectl delete -f publisher.yaml
# Wait 60 seconds for publisher to despawn
# Tear down nodes
kubectl delete -f nodes-nwaku.yaml
kubectl delete -f nodes-gowaku.yaml
# Tear down bootstrap
kubectl delete -f bootstrap.yaml