SlideShare a Scribd company logo
@gamussa | #ImCloudNative | @ConfluentINc
Kafka on Kubernetes:
Does it really have to be
«The Hard Way»?
June, 2019 / Montreal, CA, 2019
@gamussa | #ImCloudNative | @ConfluentINc
@gamussa | #ImCloudNative | @ConfluentINc
2
@gamussa | #ImCloudNative | @ConfluentINc
3
I build highly scalable
Hello World
apps
Raffle, yeah 🚀
Follow @gamussa @confluentinc
📸 🖼 👬
Tag @gamussa
With #ImCloudNative
@gamussa | #ImCloudNative | @ConfluentINc
5
A company is build on
DATA FLOWS
but
All we have is
DATA STORES
@gamussa | #ImCloudNative | @ConfluentINc
6
Pre-Streaming
@gamussa | #ImCloudNative | @ConfluentINc
7
@gamussa | #ImCloudNative | @ConfluentINc
8
New World
Streaming first
• DB/DWH + Many more
distributed data systems
• Monolith -> Microservices
• Batch -> Real-time
@gamussa | #ImCloudNative | @ConfluentINc
9
Evolution of #devkafkaops
Shell scripts
ansible/chef
Docker
Kubernetes
@gamussa | #ImCloudNative | @ConfluentINc
10
https://twitter.com/claesmogren/status/1108456688175079424
@gamussa | #ImCloudNative | @ConfluentINc
11
🙋
@gamussa | #ImCloudNative | @ConfluentINc
12
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 | #ImCloudNative | @ConfluentINc
13
kafkaesque world of Kafka on
Kubernetes
@gamussa | #ImCloudNative | @ConfluentINc
14
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
#devkafkaops
@gamussa | #ImCloudNative | @ConfluentINc
15
But I
just
want to
deploy
kafka
@gamussa | #ImCloudNative | @ConfluentINc
16
Workloads Deployment
@gamussa | #ImCloudNative | @ConfluentINc
17
Helm Charts
@gamussa | #ImCloudNative | @ConfluentINc
18
Helm Charts
@gamussa | #ImCloudNative | @ConfluentINc
19
Helm Charts
@gamussa | #ImCloudNative | @ConfluentINc
20
https://cnfl.io/helm_video
@gamussa | #ImCloudNative | @ConfluentINc
21
Helm Charts is just a GO
Templates.
How Charts help with
rolling update?
@gamussa | #ImCloudNative | @ConfluentINc
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 under-
replicated partitions
5. Upgrade the next broker
@gamussa | #ImCloudNative | @ConfluentINc
23
We will use
StatefulSets
with OrderedReady
@gamussa | #ImCloudNative | @ConfluentINc
24
We need SRE /
Operator knowledge to
manage the platform.
You need Operator!
@gamussa | #ImCloudNative | @ConfluentINc
25
@gamussa | #ImCloudNative | @ConfluentINc
26
Show me your
Operator
@gamussa | #ImCloudNative | @ConfluentINc
27
Rider Driver
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
KLyfft - Kafka app on Kubernetes
@gamussa | #ImCloudNative | @ConfluentINc
28
Demo
@gamussa | #ImCloudNative | @ConfluentINc
29
DO KAFKA ON KUBERNETES DEMO
AND EVERYONE LOOSES THEIR MIND
@gamussa | #ImCloudNative | @ConfluentINc
30
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 | #ImCloudNative | @ConfluentINc
31
Be like Justin!
@gamussa | #ImCloudNative | @ConfluentINc
32
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 under-
replicated partitions
5. Upgrade the next broker
@gamussa | #ImCloudNative | @ConfluentINc
33
Want to see advanced deployment?
vs.
@gamussa | #ImCloudNative | @ConfluentINc
34
http://gamov.dev/ksummit_nyc19_k8s
@gamussa | #ImCloudNative | @ConfluentINc
35
GA Plans● We are in private Preview
Release is over!
● 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 | #ImCloudNative | @ConfluentINc
Thanks!
@gamussa
viktor@confluent.io
https://slackpass.io/confluentcommunity
#kubernetes
37

More Related Content

Kafka on Kubernetes