Skip to content

Instantly share code, notes, and snippets.

@adafycheng
Last active November 3, 2022 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adafycheng/42e0a2b9c18f795e5ceb0984c3b74f5a to your computer and use it in GitHub Desktop.
Save adafycheng/42e0a2b9c18f795e5ceb0984c3b74f5a to your computer and use it in GitHub Desktop.
Confluent Quick Start Notes

Confluent Quick Start Notes - Kubenetes

Installation

Docker

kubectl

Minikube

Helm

Helm is the package manager for Kubernetes.

Confluent

Create a namespace

  1. Create the namespace to use.

    kubectl create namespace confluent
    
  2. Set this namespace to default for your Kubernetes context.

    kubectl config set-context --current --namespace confluent
    

Install Confluent for Kubernetes

  1. Add the Confluent for Kubernetes Helm repository.

    helm repo add confluentinc https://packages.confluent.io/helm
    helm repo update
    
  2. Install Confluent for Kubernetes.

    helm upgrade --install confluent-operator confluentinc/confluent-for-kubernetes
    

Install Confluent Platform

  1. Install all Confluent Platform components.

    kubectl apply -f https://raw.githubusercontent.com/confluentinc/confluent-kubernetes-examples/master/quickstart-deploy/confluent-platform.yaml
    
  2. Install a sample producer app and topic.

    kubectl apply -f https://raw.githubusercontent.com/confluentinc/confluent-kubernetes-examples/master/quickstart-deploy/producer-app-data.yaml
    
  3. Check that everything is deployed:

    kubectl get pods
    

View Control Center

Use Control Center to monitor the Confluent Platform, and see the created topic and data.

  1. Set up port forwarding to Control Center web UI from local machine:

    kubectl port-forward controlcenter-0 9021:9021
    
  2. Browse to Control Center:

    http://localhost:9021

  3. Check that the elastic-0 topic was created and that messages are being produced to the topic.

Install and use Confluent kubectl plugin

  1. Install the Plugin.

  2. Open Confluent Control Center.

    kubectl confluent dashboard controlcenter
    
  3. View the Confluent Platform version

    kubectl confluent version
    

Docker Compose

  1. Install the plugin.

  2. Test.

    docker compose version
    

Opeations

  1. Start Docker service.

    sudo service docker start
    
  2. Start cluster.

    minikube start
    

    For troubleshooting,

    minikube start --alsologtostderr --v=2    
    
  3. Get Cluster Information

    kubectl get po --namespace confluent
    
  4. Open Kubernetes Dashboard

    minikube dashboard
    
  5. Open Confluent Control Center.

    kubectl confluent dashboard controlcenter --namespace confluent
    

Acknownledgements

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