Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate Regional volumes for the two ZK pods meant to migrate at zone outage #191

Merged
merged 9 commits into from
Nov 29, 2018
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 @@ -85,4 +85,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 @@ -16,7 +16,7 @@ spec:
metadata:
labels:
app: zookeeper
storage: ephemeral
storage: persistent-regional
annotations:
spec:
terminationGracePeriodSeconds: 10
Expand Down Expand Up @@ -71,5 +71,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