Skip to content

Commit

Permalink
Adds storage class for kafka brokers
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Aug 8, 2017
1 parent c3969a8 commit ebcff38
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 50kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ spec:
volumeClaimTemplates:
- metadata:
name: data
annotations:
volume.beta.kubernetes.io/storage-class: kafka-broker
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
Expand Down
7 changes: 7 additions & 0 deletions configure-gke/storageclass-broker-gke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-broker
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-standard
5 changes: 5 additions & 0 deletions configure-minikube/storageclass-broker-minikube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-broker
provisioner: k8s.io/minikube-hostpath

0 comments on commit ebcff38

Please sign in to comment.