Skip to content
/ kafka Public

Install Kafka on Kubernetes (K8s) in KRaft mode (Zookeperless)

Notifications You must be signed in to change notification settings

vanelin/kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVP Kafka on Kubernetes (K8s) in KRaft mode (Zookeperless)

Mindmap diagram:

The architecture diagram below represents the resources we will deploy to get a general idea of how our Kafka cluster will look in Kubernetes.

Kafka on K8s

Run kind cluster:

  • install kind to your local machine quick start
  • create a kind cluster with the following command:
    kind create cluster --name kafka-cluster --config=kind-config.yaml 
  • get context for the new cluster
    kind get kubeconfig --name kafka-cluster
  • install ingress controller kind ingress
  • for deleting the cluster run the following command:
    kind delete cluster --name kafka-cluster

Optional: Install Metrics Server

Install the latest Metrics Server release by applying the components.yaml from the official GitHub repository:

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

Once installed, you'll need to locate the Metrics Server deployment to patch it. This can typically be found in the kube-system namespace. Use the following command to patch it:

kubectl patch deployment metrics-server -n kube-system --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--kubelet-insecure-tls"}]'

Please be aware that using --kubelet-insecure-tls means the Metrics Server will not verify the TLS certificates presented by the Kubelets. This can lead to insecure operation and is not recommended for production environments. It is usually used when you have self-signed certs or a non-standard CA and have not set up the appropriate CA chain for the Metrics Server to trust the Kubelets' certificates.

Install Apache Kafka:

About

Install Kafka on Kubernetes (K8s) in KRaft mode (Zookeperless)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published