Kafka on Kubernetes: Does it really have to be “The Hard Way”?

A presentation at Kafka Summit New York 2019 in April 2019 in New York, NY, USA by Viktor Gamov

Slide 1

Slide 1

Kafka on Kubernetes: Does it really have to be «The Hard Way»? April, 2019 / New York, 2019 @gamussa | #kafkasummit | @ConfluentINc

Slide 2

Slide 2

Raffle, yeah 🚀 Follow @gamussa @confluentinc 📸🖼👬 Tag @gamussa With #kafkasummit

Slide 3

Slide 3

3 Evolution of #devkafkaops ansible/chef Docker Kubernetes Shell scripts @gamussa | #kafkasummit | @ConfluentINc

Slide 4

Slide 4

4 @gamussa | #kafkasummit | @ConfluentINc

Slide 5

Slide 5

5 🙋 @gamussa | #kafkasummit | @ConfluentINc

Slide 6

Slide 6

6 🙋 Who run stateless workloads in Kubernetes? Who thinks it’s a good idea? Who run stateful workloads in Kubernetes? Who thinks it’s a good idea? @gamussa | #kafkasummit | @ConfluentINc

Slide 7

Slide 7

7 kafkaesque world of Kafka on Kubernetes @gamussa | #kafkasummit | @ConfluentINc

Slide 8

Slide 8

8 #devkafkaops Well, it’s tricky © Translating an existing architecture to Kubernetes External access to brokers and other components Persistent Storage options on prem and clouds Security Configuration and Upgrades @gamussa | #kafkasummit | @ConfluentINc

Slide 9

Slide 9

9 We just need to deploy Kafka on Kubernetes @gamussa | #kafkasummit | @ConfluentINc

Slide 10

Slide 10

10 We will use confluentinc/cp-helmcharts @gamussa | #kafkasummit | @ConfluentINc

Slide 11

Slide 11

11 Helm Charts is just a GO Templates. How Charts help with rolling restart? @gamussa | #kafkasummit | @ConfluentINc

Slide 12

Slide 12

12 We will use StatefulSets with OrderedReady @gamussa | #kafkasummit | @ConfluentINc

Slide 13

Slide 13

13 We need SRE / Operator knowledge to manage the platform. You need Operator! @gamussa | #kafkasummit | @ConfluentINc

Slide 14

Slide 14

14 @gamussa | #kafkasummit | @ConfluentINc

Slide 15

Slide 15

15 Show me your Operator @gamussa | #kafkasummit | @ConfluentINc

Slide 16

Slide 16

16 Demo @gamussa | #kafkasummit | @ConfluentINc

Slide 17

Slide 17

17 DO KAFKA ON KUBERNETES DEMO AND EVERYONE LOOSES THEIR MIND @gamussa | #kafkasummit | @ConfluentINc

Slide 18

Slide 18

18 What just happened? ZK and Kafka deployed Security with TLS is configured External access is configured Monitoring is enabled @gamussa | #kafkasummit | @ConfluentINc

Slide 19

Slide 19

19 Confluent Operator - Automated Security Configuration SASL PLAIN and Mutual TLS Authentication Automate configuration of truststores and keystores with secret objects Automate configuration of Kafka and all Confluent Platform Components @gamussa | #kafkasummit | @ConfluentINc

Slide 20

Slide 20

20 Confluent Operator - Scale Automate Scaling: Spin up new brokers, connect workers easily Distribute partitions to new brokers: Determine balancing plan Execute balancing plan Monitor Resources @gamussa | #kafkasummit | @ConfluentINc

Slide 21

Slide 21

21 Be like Justin! @gamussa | #kafkasummit | @ConfluentINc

Slide 22

Slide 22

Rolling Upgrade Kafka Broker Upgrades: 1. Stop the broker, upgrade Kafka 2. Wait for Partition Leader reassignment 3. Start the upgraded broker 4. Wait for zero underreplicated partitions 5. Upgrade the next broker @gamussa | #kafkasummit | @ConfluentINc 22

Slide 23

Slide 23

23 Will it fly? vs. @gamussa | #kafkasummit | @ConfluentINc

Slide 24

Slide 24

24 ● We are in private Preview GA Plans Release now ● 24 customers testing the Operator in Preview: ● Global customers ● Banks, Fin Tech, Retailers, Consumer Tech ● We are in the final stages of Preview and about to launch soon @gamussa | #kafkasummit | @ConfluentINc

Slide 25

Slide 25

Thanks! @gamussa viktor@confluent.io michael.ng@confluent.io https://slackpass.io/confluentcommunity #kubernetes @gamussa | @ #kafkasummit | @ConfluentINc

Slide 26

Slide 26

26