diff options
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 - |