diff options
author | Staffan Olsson <staffan@repos.se> | 2016-09-05 07:12:52 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2016-09-05 07:12:52 +0200 |
commit | c9bdab7185b3eee1c65e6043a7d813c294c8046d (patch) | |
tree | 3488ef658e34ef8146a334bfdb1dd0c54b73f9e3 /bootstrap/pv.sh | |
parent | d3132ddf3c6d534b64256f5c5c39f887e63349b8 (diff) | |
download | kubernetes-kafka-c9bdab7185b3eee1c65e6043a7d813c294c8046d.tar.gz kubernetes-kafka-c9bdab7185b3eee1c65e6043a7d813c294c8046d.tar.bz2 kubernetes-kafka-c9bdab7185b3eee1c65e6043a7d813c294c8046d.zip |
Non-automatic volume provisioning, for Minikube etc
Diffstat (limited to 'bootstrap/pv.sh')
-rwxr-xr-x | bootstrap/pv.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap/pv.sh b/bootstrap/pv.sh new file mode 100755 index 0000000..78bf7f5 --- /dev/null +++ b/bootstrap/pv.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +echo "Note that in for example GKE a PetSet will have PersistentVolume(s) and PersistentVolumeClaim(s) created for it automatically" + +dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" +path="$dir/data" +echo "Please enter a path where to store data during local testing: ($path)" +read newpath +[ -n "$newpath" ] && path=$newpath + +cat bootstrap/pv-template.yml | sed "s|/tmp/k8s-data|$path|" | kubectl create -f - |