Deploying a NiFi Registry instance (internet)

Learn about deploying a NiFi Registry cluster using CFM Operator.

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

  • Ensure the CFM 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 the NiFi Registry cluster namespace if it does not already exist.
    kubectl create namespace [***REGISTRY NAMESPACE***]

    Replace [***REGISTRY NAMESPACE***] with your desired namespace.

  2. Create an image pull secret.
    kubectl create secret docker-registry docker-pull-secret \
      --namespace [***CFM OPERATOR NAMESPACE***] \
      --docker-server container.repository.cloudera.com \
      --docker-username [***USERNAME***] \
      --docker-password [***PASSWORD***]
    

    Replace:

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

    • [***CFM OPERATOR NAMESPACE***] with the desired operator installation namespace, typically cfm-operator-system.

    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. Apply your NiFi Registry CR to the Kubernetes cluster.
    kubectl apply -f [***REGISTRY YAML PATH***] --namespace [***REGISTRY NAMESPACE***]

    Replace:

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

    • [***REGISTRY NAMESPACE***] with your desired namespace.