From 1110d598c8dfe705f78fc101cf697738e65d97c6 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 1 Mar 2017 15:08:43 +0100 Subject: Makes PV match PVC, avoiding small initial storage becase resize is difficult in GKE --- README.md | 2 +- bootstrap/pv-template.yml | 6 +++--- bootstrap/pv.sh | 2 +- 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" -- cgit v1.2.3