apecloud/kubeblocks-skills/kubeblocks-addon-kafka
Claude Code and agent skill by apecloud/kubeblocks-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Legacy compatibility shim for Kafka provisioning on KubeBlocks. The primary create-time entry is kubeblocks-engine-kafka. Keep this skill callable for older references, but do not recommend it as the main path for cold-start agents.
Install
npx vskill@latest install apecloud/kubeblocks-skills/kubeblocks-addon-kafkaSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as apecloud/kubeblocks-skills/kubeblocks-addon-kafka.
Deploy Kafka on KubeBlocks
Legacy compatibility shim. Primary entry: kubeblocks-engine-kafka. Keep the preserved workflow below for detailed reference, but do not recommend this skill as the main path for cold-start agents.
Overview
Deploy Apache Kafka clusters on Kubernetes using KubeBlocks. Supports combined mode (broker + controller in one process) and separated mode (dedicated broker and controller nodes) with optional monitoring via exporter.
Official docs: https://kubeblocks.io/docs/preview/user_docs/kubeblocks-for-kafka/cluster-management/create-a-kafka-cluster Full doc index: https://kubeblocks.io/llms-full.txt
Prerequisites
- A running Kubernetes cluster with KubeBlocks installed (see install-kubeblocks)
- The Kafka addon must be enabled:
Available Topologies
| Topology | Value | Components | Use Case | |
|---|---|---|---|---|
| Combined | combined | kafka-combine | Dev/test, broker+controller in one | |
| Combined + Monitor | combined_monitor | kafka-combine + exporter | Combined with metrics | |
| Separated | separated | kafka-broker + kafka-controller | Production, dedicated roles | |
| Separated + Monitor | separated_monitor | kafka-broker + kafka-controller + exporter | Production with metrics |
Kafka uses KRaft mode (no ZooKeeper dependency). Controllers manage cluster metadata via the Raft protocol.
Supported Versions
| Version | serviceVersion | |
|---|---|---|
| Kafka 3.3 | 3.3.2 |
Workflow
Step 1: Ensure Addon Is Installed
If not found:
Step 2: Create Namespace
Step 3: Create Cluster
Combined Mode (Dev/Test)
Broker and controller run in the same process. Simpler but not recommended for production:
Separated Mode (Production)
Dedicated broker and controller nodes for better isolation and scalability:
Key points:
- Brokers need both
dataandmetadatavolumes - Controllers only need a
metadatavolume (they don't store message data) - 3 controller replicas for Raft consensus
Separated Mode with Monitoring
Add an exporter component for Prometheus-compatible metrics:
Environment Variables
Kafka configuration can be tuned via environment variables on the component spec:
| Variable | Description | Example | |
|---|---|---|---|
KB_KAFKA_BROKER_HEAP | Broker JVM heap settings | -Xmx512m -Xms512m | |
KB_KAFKA_CONTROLLER_HEAP | Controller JVM heap settings | -Xmx256m -Xms256m | |
KB_KAFKA_ENABLE_SASL | Enable SASL authentication | true | |
KB_KAFKA_PUBLIC_ACCESS | Enable external access mode | true |
Step 4: Wait for Cluster Ready
Wait until STATUS shows Running. Kafka clusters typically take 2-4 minutes.
Check pods:
Step 5: Produce and Consume Messages
Create a Topic
Produce Messages
Consume Messages
For Separated Mode
Replace the pod name with the broker pod:
Troubleshooting
Cluster stuck in Creating:
Broker not starting:
Controller quorum issues:
- Ensure exactly 3 controller replicas for Raft consensus
- Check controller logs for election errors
Out of memory:
- Adjust heap settings via
KB_KAFKA_BROKER_HEAP/KB_KAFKA_CONTROLLER_HEAPenvironment variables - Ensure container memory limits are larger than heap size
Day-2 Operations
| Operation | Skill | External Docs | |
|---|---|---|---|
| Stop / Start / Restart | cluster-lifecycle | Docs | |
| Scale CPU / Memory | vertical-scaling | Docs | |
| Add / Remove replicas | horizontal-scaling | Docs | |
| Expand storage | volume-expansion | Docs | |
| Change parameters | reconfigure-parameters | Docs |
Safety Patterns
Follow safety-patterns.md for dry-run before apply, status confirmation after watch, and pre-deletion checklist.
Next Steps
- For full YAML examples of all topologies (combined_monitor, separated_monitor with production sizing), environment variable reference, and component/volume matrix, see reference.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kubeblocks-addon-kafka/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/apecloud/kubeblocks-skills/kubeblocks-addon-kafka)