Skip to content

Commit

Permalink
Updates statefulset to beta2 workload API, k8s 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Oct 25, 2017
1 parent a98a9fa commit 8e2de05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion 50kafka.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: kafka
namespace: kafka
spec:
spec:
selector:
matchLabels:
app: kafka
serviceName: "broker"
replicas: 3
template:
Expand Down
7 changes: 6 additions & 1 deletion zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: pzoo
namespace: kafka
spec:
spec:
selector:
matchLabels:
app: zookeeper
storage: persistent
serviceName: "pzoo"
replicas: 3
template:
Expand Down
6 changes: 5 additions & 1 deletion zookeeper/51zoo.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: zoo
namespace: kafka
spec:
selector:
matchLabels:
app: zookeeper
storage: ephemeral
serviceName: "zoo"
replicas: 2
template:
Expand Down

0 comments on commit 8e2de05

Please sign in to comment.