This commit is contained in:
Blair Vanderlugt 2021-08-24 09:48:38 -07:00
parent 6f7000f234
commit 434805c914

View File

@ -29,11 +29,11 @@ deploy-k8s-dev:
#- kubectl apply -f deployment.yaml
- echo "Wiping state..."
- kubectl delete jobs.batch --all
- kubectl delete hr postgresql && kubectl delete --wait=false pvc -l 'app.kubernetes.io/name=postgresql'
- kubectl delete hr postgresql && kubectl delete pvc -l 'app.kubernetes.io/name=postgresql'
- kubectl delete sts,pvc -l 'app=bloxberg-validator'
- kubectl delete hr redis && kubectl delete --wait=false pvc -l 'app=redis'
- kubectl delete hr redis && kubectl delete pvc -l 'app=redis'
- kubectl apply -f kubernetes/eth-node/ -f kubernetes/postgresql/ -f kubernetes/redis/
- echo "run database migrations..."
- kubectl rollout restart deployments
- echo "deploy and run database migrations..."
- k apply -f kubernetes/
- echo "run contract migrations..."
- kubectl apply -f kubernetes/contract-migration/contract-migration-job.yaml