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
Prev Previous commit
Next Next commit
Uses GKE "Regional\” persistent volumes - fixed zones
  • Loading branch information
solsson committed Jul 21, 2018
commit 3e9ff803bca6c80dbf43ab679431f42543c01fcd
11 changes: 11 additions & 0 deletions configure/gke-storageclass-zookeeper-ssd-regional1.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
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
type: pd-ssd
replication-type: regional-pd
zones: europe-west1-b, europe-west1-c
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-regional1
resources:
requests:
storage: 1Gi