Skip to content

Commit

Permalink
Regional, i.e. multi-zone, volumes for 2 of 5 zk pods is now a variant
Browse files Browse the repository at this point in the history
For background see #191

Also relevant to #269 #268 #243 #179
  • Loading branch information
solsson committed May 3, 2019
1 parent 44717ce commit d86263f
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions variants/gke-regional/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bases:
- ../scale-3-5
resources:
- gke-storageclass-broker-pd.yaml
- gke-storageclass-zookeeper-ssd.yaml
- gke-storageclass-zookeeper-regional-euwest1cd-ssh.yaml
patchesStrategicMerge:
- volume-claims.yaml
48 changes: 48 additions & 0 deletions variants/gke-regional/volume-claims.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kafka
namespace: kafka
spec:
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: kafka-broker
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pzoo
namespace: kafka
spec:
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: kafka-zookeeper
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: zoo
namespace: kafka
spec:
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: kafka-zookeeper-regional
resources:
requests:
storage: 1Gi

0 comments on commit d86263f

Please sign in to comment.