Skip to content

Instantly share code, notes, and snippets.

@turkenh
Last active October 12, 2021 17:33
Show Gist options
  • Save turkenh/d740dca2f9080a246338e5d3def7463b to your computer and use it in GitHub Desktop.
Save turkenh/d740dca2f9080a246338e5d3def7463b to your computer and use it in GitHub Desktop.
provider-kafka-development-environment

Create at ~/.kaf/config

current-cluster: local
clusteroverride: ""
clusters:
- name: local
  version: ""
  brokers:
  - kafka-dev-0.kafka-dev-headless:9092
  SASL:
    mechanism: PLAIN
    username: user
    password: <YOUR_PASSWORD>
  TLS: null
  security-protocol: ""
  schema-registry-url: ""

Development Environment

  1. Install Kafka:

https://bitnami.com/stack/kafka/helm

helm repo add bitnami https://charts.bitnami.com/bitnami
kubectl create ns kafka-cluster
helm upgrade --install kafka-dev -n kafka-cluster bitnami/kafka --set auth.clientProtocol=sasl --set deleteTopicEnable=true --wait

Username is "user", obtain password using the following

kubectl -n kafka-cluster exec kafka-dev-0 -- cat /opt/bitnami/kafka/config/kafka_jaas.conf
  1. Install kubefwd

https://github.com/txn2/kubefwd#os

  1. (optional) Install kafka cli

https://github.com/birdayz/kaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment