Deploy Confluent for Kubernetes

The Confluent for Kubernetes (CFK) bundle contains Helm charts, templates, and scripts for deploying Confluent Platform to your Kubernetes cluster.

Deploy Confluent for Kubernetes from Helm repo

  1. Add a Helm repo:

    helm repo add confluentinc https://packages.confluent.io/helm \
      --namespace <namespace>
    
    helm repo update --namespace <namespace>
    
  2. Install CFK using the default configuration:

    helm upgrade --install confluent-operator \
      confluentinc/confluent-for-kubernetes \
      --namespace <namespace>
    

Deploy customized Confluent for Kubernetes from Helm repo

  1. Pull the CFK Chart:

    mkdir -p <CFK-home>
    
    helm pull confluentinc/confluent-for-kubernetes \
      --untar --untardir=<CFK-home> \
      --namespace <namespace>
    
  2. Edit the <CFK-home>/values.yaml file to customize the CFK configuration.

  3. Install CFK using the customized configuration:

    helm upgrade --install confluent-operator \
      confluentinc/confluent-for-kubernetes \
      --values <CFK-home>/values.yaml \
      --namespace <namespace>
    

Deploy Confluent for Kubernetes using the download bundle

  1. Download and unpack the following CFK bundle:

    https://confluent-for-kubernetes.s3-us-west-1.amazonaws.com/confluent-for-kubernetes-2.0.1.tar.gz

  2. From the helm sub-directory of where you downloaded the CFK bundle, install CFK:

    helm upgrade --install \
      confluent-operator \
      ./confluent-for-kubernetes \
      --namespace <namespace>
    

Install Confluent plugin

The Confluent for Kubernetes (CFK) bundle contains a Confluent plugin for interacting with Confluent for Kubernetes. It is supported for three environments: Linux, Windows, and Darwin. See Confluent plugin for more information about the tool.

  1. If you deployed CFK using Helm repo, download and unpack the CFK bundle. If you used Deploy Confluent for Kubernetes using the download bundle, skip this step.

    https://confluent-for-kubernetes.s3-us-west-1.amazonaws.com/confluent-for-kubernetes-2.0.1.tar.gz

  2. Unpack the kubectl plugin that matches your client environment, Linux, Windows or Mac OS (Darwin), into your client environment local executables directory. On Mac OS and Linux, this would be /usr/local/bin/. This will allow the standard CLI kubectl to find the plugin.

    tar -xvf kubectl-plugin/kubectl-confluent-<environment>-amd64.tar.gz \
       -C <local directory for the plugin>
    

    For example, on Mac OS:

    tar -xvf kubectl-plugin/kubectl-confluent-darwin-amd64.tar.gz \
       -C /usr/local/bin/
    

Install Confluent plugin using Krew

Krew is the plugin manager for kubectl. Take the following steps if you want to use Krew to install the Confluent plugin.

  1. Install Krew as described in Krew User Guide.

  2. Run the following command to install the Confluent plugin:

    kubectl krew  install \
      --manifest=confluent-platform.yaml \
      --archive=kubectl-confluent-<environment>-amd64.tar.gz
    

    For example, to install the plugin on MacOS:

    kubectl krew  install \
      --manifest=confluent-platform.yaml \
      --archive=kubectl-confluent-darwin-amd64.tar.gz