aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaffan Olsson <staffan@repos.se>2017-03-01 15:08:43 +0100
committerStaffan Olsson <staffan@repos.se>2017-06-23 20:01:46 +0200
commit1110d598c8dfe705f78fc101cf697738e65d97c6 (patch)
tree6555a4028787f13a74cfd9a694e0fda5f8f3a37f
parenta385740ddf05532f48c73f2aba60a4ab44b61b6e (diff)
downloadkubernetes-kafka-1110d598c8dfe705f78fc101cf697738e65d97c6.tar.gz
kubernetes-kafka-1110d598c8dfe705f78fc101cf697738e65d97c6.tar.bz2
kubernetes-kafka-1110d598c8dfe705f78fc101cf697738e65d97c6.zip
Makes PV match PVC, avoiding small initial storage becase resize is difficult in GKE
-rw-r--r--README.md2
-rw-r--r--bootstrap/pv-template.yml6
-rwxr-xr-xbootstrap/pv.sh2
3 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 8cfaecd..1117539 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Alternatively create [PV](http://kubernetes.io/docs/user-guide/persistent-volume
```
./bootstrap/pv.sh
-kubectl create -f ./bootstrap/pvc.yml
+kubectl create -f ./10pvc.yml
# check that claims are bound
kubectl -n kafka get pvc
```
diff --git a/bootstrap/pv-template.yml b/bootstrap/pv-template.yml
index e58bfb2..befb6b6 100644
--- a/bootstrap/pv-template.yml
+++ b/bootstrap/pv-template.yml
@@ -10,7 +10,7 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
- storage: 100Mi
+ storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-0
---
@@ -25,7 +25,7 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
- storage: 100Mi
+ storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-1
---
@@ -40,6 +40,6 @@ spec:
accessModes:
- ReadWriteOnce
capacity:
- storage: 100Mi
+ storage: 200Gi
hostPath:
path: /tmp/k8s-data/datadir-kafka-2
diff --git a/bootstrap/pv.sh b/bootstrap/pv.sh
index 78bf7f5..c12787b 100755
--- a/bootstrap/pv.sh
+++ b/bootstrap/pv.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-echo "Note that in for example GKE a PetSet will have PersistentVolume(s) and PersistentVolumeClaim(s) created for it automatically"
+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"