Skip to content

Commit

Permalink
Merge pull request #191 from Yolean/all-persistent-zookeeper
Browse files Browse the repository at this point in the history
Evaluate Regional volumes for the two ZK pods meant to migrate at zone outage
  • Loading branch information
solsson authored Nov 29, 2018
2 parents c41f9f9 + 37d64ec commit 81774cc
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 19 deletions.
2 changes: 1 addition & 1 deletion configure/aks-storageclass-broker-managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ provisioner: kubernetes.io/azure-disk
reclaimPolicy: Retain
parameters:
kind: "Managed"
storageaccounttype: Premium_LRS
storageaccounttype: Premium_LRS
2 changes: 1 addition & 1 deletion configure/aks-storageclass-zookeeper-managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ provisioner: kubernetes.io/azure-disk
reclaimPolicy: Retain
parameters:
kind: "Managed"
storageaccounttype: Premium_LRS
storageaccounttype: Premium_LRS
1 change: 1 addition & 0 deletions configure/aws-storageclass-broker-gp2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ metadata:
k8s-addon: storage-aws.addons.k8s.io
provisioner: kubernetes.io/aws-ebs
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: gp2
1 change: 1 addition & 0 deletions configure/aws-storageclass-zookeeper-gp2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ metadata:
k8s-addon: storage-aws.addons.k8s.io
provisioner: kubernetes.io/aws-ebs
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: gp2
11 changes: 11 additions & 0 deletions configure/gke-regional-euwest1cd-zookeeper-ssd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-zookeeper-regional
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: pd-ssd
replication-type: regional-pd
zones: europe-west1-c, europe-west1-d
1 change: 1 addition & 0 deletions configure/gke-storageclass-broker-pd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: kafka-broker
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: pd-standard
1 change: 1 addition & 0 deletions configure/gke-storageclass-zookeeper-ssd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ metadata:
name: kafka-zookeeper
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: pd-ssd
6 changes: 0 additions & 6 deletions configure/minikube-storageclass-broker.yml

This file was deleted.

6 changes: 0 additions & 6 deletions configure/minikube-storageclass-zookeeper.yml

This file was deleted.

21 changes: 21 additions & 0 deletions configure/minikube-storageclasses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-broker
provisioner: k8s.io/minikube-hostpath
reclaimPolicy: Retain
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-zookeeper
provisioner: k8s.io/minikube-hostpath
reclaimPolicy: Retain
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-zookeeper-regional
provisioner: k8s.io/minikube-hostpath
reclaimPolicy: Retain
2 changes: 1 addition & 1 deletion kafka/50kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ spec:
storageClassName: kafka-broker
resources:
requests:
storage: 200Gi
storage: 10Gi
15 changes: 11 additions & 4 deletions zookeeper/51zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: zookeeper
storage: ephemeral
storage: persistent-regional
serviceName: "zoo"
replicas: 2
updateStrategy:
Expand All @@ -17,7 +17,7 @@ spec:
metadata:
labels:
app: zookeeper
storage: ephemeral
storage: persistent-regional
annotations:
spec:
terminationGracePeriodSeconds: 10
Expand Down Expand Up @@ -78,5 +78,12 @@ spec:
name: zookeeper-config
- name: config
emptyDir: {}
- name: data
emptyDir: {}
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: kafka-zookeeper-regional
resources:
requests:
storage: 1Gi

0 comments on commit 81774cc

Please sign in to comment.