Kafka on Kubernetes: Does It Really Have To Be “The Hard Way”?

A presentation at Percona Live 2019 in May 2019 in Austin, TX, USA by Viktor Gamov

Slide 1

Slide 1

Kafka on Kubernetes: Does it really have to be «The Hard Way»? May, 2019 / Texas, 2019 @gamussa @gamussa || #PerconaLive #PerconaLive || @ConfluentINc @ConfluentINc

Slide 2

Slide 2

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

Slide 3

Slide 3

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

Slide 4

Slide 4

4 @gamussa | #PerconaLive | @ConfluentINc

Slide 5

Slide 5

5 🙋 @gamussa | #PerconaLive | @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 | #PerconaLive | @ConfluentINc

Slide 7

Slide 7

7 kafkaesque world of Kafka on Kubernetes @gamussa | #PerconaLive | @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 | #PerconaLive | @ConfluentINc

Slide 9

Slide 9

9 But I just want to deploy kafka @gamussa | #PerconaLive | @ConfluentINc

Slide 10

Slide 10

10 Workloads Deployment @gamussa | #PerconaLive | @ConfluentINc

Slide 11

Slide 11

11 https://cnfl.io/helm_video @gamussa | #PerconaLive | @ConfluentINc

Slide 12

Slide 12

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

Slide 13

Slide 13

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

Slide 14

Slide 14

14 @gamussa | #PerconaLive | @ConfluentINc

Slide 15

Slide 15

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

Slide 16

Slide 16

16 KLyfft - Kafka app on Kubernetes 2 Web Apps powered by a microservice each Apps are a ride sharing driver and rider location tracking Rider hails a ride and the driver drives towards the rider Real time location events powered by Kafka on Kubernetes Rider @gamussa | #PerconaLive | @ConfluentINc Driver

Slide 17

Slide 17

17 Demo @gamussa | #PerconaLive | @ConfluentINc

Slide 18

Slide 18

18 DO KAFKA ON KUBERNETES DEMO AND EVERYONE LOOSES THEIR MIND @gamussa | #PerconaLive | @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 | #PerconaLive | @ConfluentINc

Slide 20

Slide 20

20 Be like Justin! @gamussa | #PerconaLive | @ConfluentINc

Slide 21

Slide 21

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 | #PerconaLive | @ConfluentINc 21

Slide 22

Slide 22

22 Want to see advanced deployment? vs. @gamussa | #PerconaLive | @ConfluentINc

Slide 23

Slide 23

23 http://gamov.dev/ksummit_nyc19_k8s @gamussa | #PerconaLive | @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 | #PerconaLive | @ConfluentINc

Slide 25

Slide 25

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

Slide 26

Slide 26

26