Add pod anti-affinity and a disruption budget to cockroachdb example

This commit is contained in:
Alex Robinson
2016-12-21 16:02:30 -05:00
parent 953488e909
commit ff2ddbf208
3 changed files with 31 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
set -exuo pipefail
# Clean up anything from a prior run:
kubectl delete statefulsets,pods,persistentvolumes,persistentvolumeclaims,services -l app=cockroachdb
kubectl delete statefulsets,persistentvolumes,persistentvolumeclaims,services,poddisruptionbudget -l app=cockroachdb
# Make persistent volumes and (correctly named) claims. We must create the
# claims here manually even though that sounds counter-intuitive. For details