TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Kafka on Kubernetes: What could go wrong?

35 pointsby gbrown_almost 3 years ago

9 comments

jon-woodalmost 3 years ago
Did I seriously just read through the very worst kind of fiction, business process fiction, just to be bait and switched with an ad for something that isn’t actually Kafka? I don’t even use Kafka or Kubernetes but I thought this might be an interesting look at the possible failure modes and how to handle them.
javier2almost 3 years ago
We run Kafka with kubernetes, but its so locked down&#x2F;customized we might as well run it on bare metal. We started out on rook network storage, but after multiple fs corruption incidents, we now run every broker with local storage. Kube still gives us the benefit of re-using our deployment software and many monitoring conventions, so we do get some benefit from kubernetes.<p>The only reason we did not lose data on the rook setup, is we run 5 brokers with replication factor 4, with 2 in sync.
bogomipzalmost 3 years ago
I would recommend looking at Strmzi for running Kafka on K8S. It works well and addresses all the issues mentioned in this piece. There&#x27;s no reason to switch to RedPanda because you&#x27;re running Kubernetes.<p><a href="https:&#x2F;&#x2F;strimzi.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;strimzi.io&#x2F;</a>
评论 #32203558 未加载
js4everalmost 3 years ago
This is an ad for Redpanda and it&#x27;s BSL, please stay away
评论 #32203503 未加载
评论 #32203682 未加载
mt42oralmost 3 years ago
It&#x27;s always funny to see attacks comming from vendors which are struggling in the real life because of Kubernetes success.
评论 #32203675 未加载
gattacamoviealmost 3 years ago
as some mentioned, there are benefits and there are costs applying the &#x27;lift and shift&#x27; for big things like kafka (and elastic search, DBs, etc). The main assumption is that MOST of your apps (especially the ones affected by kafka access latency) run in k8s already. Access from outside should be mainly for:<p>a. integrations with other systems which do not have very strict latency constraints<p>b. replication to disaster recovery site<p>The benefits are listed (between lines) in both article and below.<p>Price is is usually still treating those pods like pets:<p>- one pod per k8s node (taints&amp;node selectors) - special sizing &amp; tunings of the targeted nodes (resources, kernel params, etc)<p>- one LB per Pod. yes, costly and against what you would expect, but that&#x27;s what is required for a bullet proof deploy. (delay is not always there, especially in clouds, LB have super efficient implementations (especially gcp)<p>- bullet proof storage, with the required performance computed in your sizing phase.
osigurdsonalmost 3 years ago
I know many caution against doing this kind of thing but what is not to like about the concept? Why can’t we have a single, reliable and well understood “substrate” for which to deploy backend infrastructure for our apps?
ckdarbyalmost 3 years ago
TL;DR This is a plug for Red panda.<p>If you&#x27;re going to look at Kafka inside of Kubernetes at all just look at running Apache Pulsar in K8s.<p>One of the main arguments in this article is worry about exposing the broker but in Pulsar there is a proxy for this and the helm chart supports ingress public endpoint by just enabling a flag.
评论 #32203295 未加载
评论 #32203708 未加载
评论 #32203471 未加载
shitloadofbooksalmost 3 years ago
Doesn&#x27;t Strimzi make this completely painless?
评论 #32210371 未加载
评论 #32203431 未加载