diff options
author | Staffan Olsson <staffan@repos.se> | 2017-06-27 07:34:21 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2017-06-27 07:34:23 +0200 |
commit | 10543bfbd2f83a3f4c53b3d6d73e582de1e99878 (patch) | |
tree | eec68fcb9e1ebe37f8735fdbdbcfe431f462130d /bootstrap/pv.sh | |
parent | 13e981810ac8fb9f6605d24d22c6ebb3b37954c2 (diff) | |
download | kubernetes-kafka-10543bfbd2f83a3f4c53b3d6d73e582de1e99878.tar.gz kubernetes-kafka-10543bfbd2f83a3f4c53b3d6d73e582de1e99878.tar.bz2 kubernetes-kafka-10543bfbd2f83a3f4c53b3d6d73e582de1e99878.zip |
Uses dynamically provisioned volume for Kafka too. It has matured, ...
simplifies use of multi-zone clusters, works in Minikube,
and volumes are deleted when the PV is deleted (by manual kubectl).
Diffstat (limited to 'bootstrap/pv.sh')
-rwxr-xr-x | bootstrap/pv.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bootstrap/pv.sh b/bootstrap/pv.sh deleted file mode 100755 index c12787b..0000000 --- a/bootstrap/pv.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -echo "Note that in for example GKE a StatefulSet 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 - |