Installing Strimzi in an air-gapped environment
Complete these steps to install Strimzi if your Kubernetes cluster does not have internet access, or if you want to install from a self-hosted registry. Installing Strimzi installs the applications and resources that enable you to deploy and manage Kafka in Kubernetes.
Strimzi is installed in your Kubernetes cluster with the Strimzi Cluster Operator
Helm chart using the helm install
command. When you install the
chart, Helm installs the Strimzi Custom Resource Definitions (CRDs) included in Cloudera Streams Messaging - Kubernetes Operator and deploys the Strimzi Cluster Operator,
which is an operator application that manages and monitors Kafka and related
components. Additionally, other cluster resources and applications required for
managing Kafka are also installed.
Installing Strimzi does not create or deploy a Kafka cluster. Kafka clusters are
created following the installation by deploying Kafka and
KafkaNodePool resources in the Kubernetes cluster with
kubectl
or oc
.
Cloudera recommends that you install Strimzi once per Kubernetes cluster. Some resources are cluster-wide, which can cause issues if Strimzi is installed multiple times on the same cluster.
By default the Strimzi Cluster Operator (deployed with installation) watches and manages the Kafka clusters that are deployed in the same namespace as the Strimzi Cluster Operator. However, you can configure it to watch any namespace. This allows you to manage multiple Kafka clusters deployed in different namespaces using a single installation.
-
Ensure that your Kubernetes environment meets requirements listed in System requirements.
-
A self-hosted Docker registry is required. Your registry must be accessible by your Kubernetes cluster.
-
A machine with Internet connectivity is required. While the Kubernetes cluster does not need internet access, you will need a machine to pull the images from the Cloudera Docker registry.
-
Access to
docker
or equivalent utility that you can use to pull and push images is required. The following steps usedocker
. Replace commands where necessary. -
Ensure that you have access to your Cloudera credentials (username and password). Credentials are required to access the Cloudera Archive and Cloudera Docker registry where installation artifacts are hosted.
-
Ensure that you have access to a valid Cloudera license.
- Review the Helm chart reference before
installation.
The Helm chart accepts various configuration properties that you can set during installation. Using these properties you can customize your installation.
-
If you are planning to watch and manage more than 20 Kafka clusters with a single installation, you must increase the memory and heap allocated to the Strimzi Cluster Operator. You can specify memory configuration in your
helm install
command. For more information, see Increasing Cluster Operator memory.
- Deploy a Kafka cluster, see Deploying Kafka.
- Set up Prometheus for monitoring, see Configuring Kafka for Prometheus monitoring and Monitoring with Prometheus.