Deploying a NiFi Registry instance (internet)

Learn about deploying a NiFi Registry cluster using Cloudera Flow Management - Kubernetes Operator.

You can deploy a NiFi Registry cluster by creating a NiFi Registry custom resource (CR) and deploying in a Kubernetes cluster.

  • Ensure the Cloudera Flow Management - Kubernetes Operator has been installed and is running.

  • You have created a NiFi Registry custom resource (CR) YAML file that complies with the documentation provided by Cloudera.

  1. Create a namespace for the NiFi Registry if it does not already exist.
    $ kubectl create namespace my-nifi-registry
  2. In [***REGISTRY CLUSTER NAMESPACE***], create an image pull secret to access the installation artifacts.
    kubectl create secret docker-registry [***SECRET NAME***] \
      --namespace [***REGISTRY CLUSTER NAMESPACE***] \
      --docker-server container.repository.cloudera.com \
      --docker-username [***USERNAME***] \
      --docker-password [***PASSWORD***]
    

    Replace:

    • [***SECRET NAME***] with the desired Kubernetes secret name.
    • [***REGISTRY CLUSTER NAMESPACE***] with the namespace you created.

    • [***USERNAME***] and [***PASSWORD***] with your Cloudera credentials.

    For example:
    kubectl create secret docker-registry docker-pull-secret \
      --namespace cfm-operator-system \
      --docker-server container.repository.cloudera.com \
      --docker-username my-username \
      --docker-password my-password
  3. Deploy NiFi Registry to the Kubernetes cluster.
    kubectl apply -f [***CR YAML PATH***] --namespace [***REGISTRY CLUSTER NAMESPACE***]

    Replace:

    • [***CR YAML PATH***] with the absolute or relative path to the CR YAML file you created for NiFi Registry.

    • [***REGISTRY CLUSTER NAMESPACE***] with the namespace. you created to deploy NiFi Registry.