Skip to main content
Version 3.0

NiFi, from the first flow
to the team's cluster.

Five common scenarios, from the first installation to publishing at a URL. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.

ChartVersion3.0.3TypeapplicationAppVersion1.28.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+
Feature SupportLDAPsupportedS3supportedIngresssupportedGateway APIsupported

The chart tdp-nifi starts Apache NiFi through the NiFiKop operator, with ZooKeeper for cluster coordination. The number of nodes, disk space, access and login are your decisions, and each scenario below covers one of them. For the architecture, see NiFi - Concepts.

Your environment

If you fill in your environment details here, this page's examples and commands use the values you provided. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

Install with chart defaults and open the interface through NodePort.

You want to see NiFi working before deciding on nodes, disk space, access or login. Install without a values file and open the interface through a cluster node's IP. The NiFiKop operator starts and creates and maintains NiFi nodes from a NifiCluster resource; ZooKeeper coordinates the cluster; and a NiFi node runs flows. Everything shown here is provided by the chart alone. The other scenarios start from this state.

Nodes

One node (id: 1) in the group default_group, with requests and limits from resourcesRequirements and volumes from storageConfigs.

Operator

NiFiKop enabled, watching only the release namespace. The admission webhook is disabled by default (nifikop.webhook.enabled). Enabling it requires the cert-manager controllers (cert-manager, cainjector and webhook) running in the cluster. cert-manager CRDs come from the chart tdp-crds, but the controllers do not: if the cluster does not have them, install cert-manager before enabling the webhook.

Coordination

ZooKeeper as a subchart, with one replica and a persistent volume, at address <RELEASE_NAME>-zookeeper.

Access

Service tdp-nifi-service of type NodePort, on the port from nifiCluster.security.port. No Ingress or Gateway API.

Security

HTTP, without a login screen or per-user access control. To require login, see Security - NiFi.

What starts in the namespace with chart defaults

namespace <NAMESPACE>NodePortcreatescoordinationClientNode IP + NodePortServiceNodePortNiFi node1 node · HTTP, no loginNifiClusterchart resourceNiFiKopoperatorZooKeeper<RELEASE_NAME>-zookeeperflowfile · content · provenancelogs · data
  1. Client. The browser reaches the NiFi interface through any cluster node's IP, on the port allocated by the NodePort Service. kubectl port-forward does not work: the NiFi process listens on the pod hostname, not localhost. Chart default: Service NodePort.
  2. Service tdp-nifi-service. The external NiFi Service. Forwards to nodes on the port specified by nifiCluster.security.port. Chart default: NodePort. (nifiCluster.externalServices[0].spec.type)
  3. NiFi nodes. Each node is a pod running data flows. The node list is in nifiCluster.nodes; each entry references a configuration group (default_group) that defines resources and volumes. Chart default: one node (id 1), HTTP, no login. (nifiCluster.nodes · nifiCluster.nodeConfigGroups.default_group)
  4. NifiCluster. The custom resource describing the NiFi cluster: nodes, security, storage and properties. The chart creates it from the nifiCluster block; the CRD comes from the platform's CRD chart. (nifiCluster)
  5. NiFiKop operator. Reads NifiCluster and creates and maintains node pods. Watches only the release namespace. The admission webhook is disabled by default; enabling it requires cert-manager running in the cluster. Chart default: enabled, watches only the release namespace, webhook disabled. (nifikop.enabled · nifikop.watchOwnNamespace · nifikop.webhook.enabled)
  6. ZooKeeper. Subchart used by NiFi for cluster coordination. Has its own persistent volume, which remains after uninstallation. Chart default: one replica, with a persistent volume. (zookeeper.replicaCount · zookeeper.persistence)
  7. NiFi repositories. One persistent volume per repository on each node: in-flight data, content and provenance history. With the Delete default, volumes are deleted during uninstallation. Chart default: reclaimPolicy Delete. (nifiCluster.nodeConfigGroups.default_group.storageConfigs)
  8. Log and data volumes. The other two volumes on each node: NiFi logs and the data directory. Chart default: reclaimPolicy Delete. (nifiCluster.nodeConfigGroups.default_group.storageConfigs)
What starts in the namespace with chart defaults. Click an element to see what it is and its corresponding default.

Check the TDP license

The chart requires a valid TDP license installed in the cluster.

Terminal input
kubectl get platformlicenses -A

Success criteria

The license appears in the list with STATE VALID. If it does not appear, or appears with another state, install or renew it before continuing (Licensing Configuration).

Install the CRDs

NiFiKop CRDs (NifiCluster and related kinds) must be registered in the cluster before installation.

CRDs come from the chart tdp-crds, in the tdp-system namespace.

Terminal input
helm upgrade --install tdp-crds \
oci://registry.tecnisys.com.br/tdp/charts/tdp-crds \
--version 3.0.3 \
--namespace tdp-system --create-namespace

Success criteria

Terminal input
kubectl get crd nificlusters.nifi.konpyutaika.com

The CRD appears in the list.

Create the registry pull Secret

The chart images come from the Tecnisys registry, which requires login.

The tdp-registry Secret must exist in the release namespace before installation. If the namespace does not exist, create it first with kubectl create namespace <NAMESPACE>.

Terminal input
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>

Success criteria

Terminal input
kubectl -n <NAMESPACE> get secret tdp-registry

The Secret appears in the namespace. Without it, pods remain in ImagePullBackOff. For the registry username and password, see Prerequisites.

Install with defaults

Without a values file, the chart starts exactly as shown above.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace

Without --version, Helm installs the latest published version. The chart version covered by this documentation is 3.0.3.

Success criteria

Terminal input
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> get nificlusters

The operator, ZooKeeper and NiFi node reach Running, and NifiCluster appears in the list. The node becomes ready only after the readiness probe's initial delay (nifiCluster.pod.readinessProbe.initialDelaySeconds).

If a pod does not start

Namespace events in chronological order show the reason:

Terminal input
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp

Then look up the message in When something goes wrong.

Open the interface through NodePort

The NiFi Service is NodePort: any cluster node responds on the allocated port.

Terminal input
kubectl -n <NAMESPACE> get svc tdp-nifi-service
kubectl get nodes -o wide

In the Service's PORT(S) column, the port after the colon is the allocated node port (NodePort). Copy any INTERNAL-IP from the node list.

kubectl port-forward does not work for NiFi: the process listens on the pod hostname, not localhost.

Success criteria

The NiFi interface opens at http://<NODE_IP>:<NODE_PORT>/nifi, without a login screen.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The response includes the cause, action and command.

  1. Installation rejected: license check failed. Cause: The TDP license is missing or invalid in the cluster. What to do: Install the license (Licensing Configuration) and run helm upgrade --install for NiFi again.
  2. Pods in ImagePullBackOff. Cause: The tdp-registry pull Secret is missing from the release namespace: images from the Tecnisys registry require login. What to do: Create the tdp-registry Secret in the release namespace with your registry credentials (scenario 1, First steps).
  3. Installation fails: unknown NifiCluster kind. Cause: NiFiKop CRDs are not registered in the cluster. They must exist before the chart renders the NifiCluster resource. What to do: Install the platform's CRD chart and repeat the NiFi installation (scenario 1).
  4. kubectl port-forward does not open the interface. Cause: The NiFi process listens on the pod hostname, not localhost, so port-forward does not work with NiFi managed by NiFiKop. What to do: Access through the NodePort Service (scenario 1) or publish a URL (Publish at a URL scenario).
  5. OpenShift: pods rejected by the SCC. Cause: The restricted-v2 SCC requires a UID and GID within the namespace range for NiFi nodes and the operator. What to do: Set node runAsUser and fsGroup to the namespace UID and NiFiKop podSecurityContext without a UID (OpenShift scenario).
  6. With multiple nodes and login, the session drops while browsing. Cause: With more than one node and login enabled, each browser must remain on one node (session affinity). What to do: For Ingress, use cookie affinity annotations. For Gateway API, use gatewayApi.nifi.sessionPersistence or your Gateway implementation's affinity policy (Publish at a URL scenario).
  7. Argo CD shows a persistent HTTPRoute diff. Cause: sessionPersistence belongs to the Gateway API experimental channel. With standard-channel CRDs, the API server discards the field. What to do: Configure affinity using your Gateway implementation's policy, such as Envoy Gateway BackendTrafficPolicy or Istio DestinationRule.
  8. Helm rejects rendering: backendTLS. Cause: With gatewayApi.nifi.backendTLS enabled, the chart requires a hostname (a DNS name from the node certificate) and exactly one CA source. What to do: Set backendTLS.hostname and exactly one of caCertificateRefs or wellKnownCACertificates.
  9. Another problem. Cause: Start with pod and NifiCluster status and namespace events. What to do: Events in chronological order and the node log show what prevents the cluster from starting.

What remains after uninstallation​

Terminal input
helm uninstall <RELEASE_NAME> -n <NAMESPACE>

A chart pre-delete hook removes NifiCluster and its finalizers before Helm uninstalls the operator, so the resource does not remain stuck in Terminating.

NiFi node volumes follow the reclaimPolicy of each storageConfigs entry. With the Delete default, they are deleted during uninstallation. With Retain on repositories (scenario More nodes and disk space), they remain.

The ZooKeeper volume, data-<RELEASE_NAME>-zookeeper-0, remains. To start from scratch, delete it after uninstallation:

Terminal input
kubectl -n <NAMESPACE> delete pvc data-<RELEASE_NAME>-zookeeper-0

The tdp-registry Secret you created also remains in the namespace. For the platform removal order, see Uninstallation.

Lists in the values file​

Two NiFi parameters are lists: nifiCluster.nodes and nifiCluster.nodeConfigGroups.default_group.storageConfigs. When your values file defines either list, Helm does not add your entries to the chart's entries: it replaces the entire list with yours. When adding a node, repeat node 1. When changing a volume, repeat all five, each with mountPath and pvcSpec. The examples in the scenario More nodes and disk space are already complete.

All parameters​

Filter by name or group. This chart's keys are at the root of the values file.

35 of 35 parameters

ParâmetroDescriptionChart default
tdp-nifi.enabledGeneralEnables NiFi deploymenttrue
nifiCluster.clusterImageGeneralNiFi node image (includes the Ranger plugin)registry.tecnisys.com.br/tdp/images/nifi:1.28.0-1
nifiCluster.nodesGeneralNiFi node list, each with id and nodeConfigGroupone node, id: 1
nifiCluster.zkAddressGeneralZooKeeper address<release>-zookeeper:2181
nifiCluster.zkPathGeneralNiFi path in ZooKeeper/nifi
nifiCluster.readOnlyConfig.nifiProperties.overrideConfigsGeneralProperties added to nifi.propertiesnot defined
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.requests.cpuResourcesCPU reserved for each node2
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.requests.memoryResourcesMemory reserved for each node4Gi
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.limits.cpuResourcesCPU limit per node4
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.limits.memoryResourcesMemory limit per node8Gi
nifiCluster.readOnlyConfig.bootstrapProperties.overrideConfigsResourcesJVM arguments, including heap settings-Xms2g, -Xmx2g
nifiCluster.nodeConfigGroups.default_group.storageConfigsResourcesVolumes per node (list replaced entirely)1Gi repositories, 5Gi logs and data, all Delete
nifiCluster.pod.readinessProbe.initialDelaySecondsResourcesNode readiness probe initial delay120
zookeeper.replicaCountZooKeeperZooKeeper replicas1
zookeeper.persistence.storageClassZooKeeperZooKeeper StorageClass"" (cluster default)
zookeeper.persistence.sizeZooKeeperZooKeeper volume size4Gi
nifikop.enabledOperatorEnables the NiFiKop operatortrue
nifikop.watchOwnNamespaceOperatorThe operator watches only the release namespacetrue
nifikop.webhook.enabledOperatorOperator admission webhook (requires cert-manager)false
nifikop.certManager.enabledOperatorWebhook integration with cert-managerfalse
nifiCluster.nodeConfigGroups.default_group.runAsUserOpenShiftNode UID. On OpenShift, the namespace UID""
nifiCluster.nodeConfigGroups.default_group.fsGroupOpenShiftVolume GID. On OpenShift, the namespace UID""
nifikop.podSecurityContextOpenShiftOperator security context. On OpenShift, runAsNonRoot: true and runAsUser: nullnot defined
nifiCluster.externalServices[0].spec.typeAccessNiFi Service typeNodePort
nifiCluster.security.portAccessNiFi port (Service and Ingress destination)8080 (8443 with HTTPS)
ingress.enabledExposureCreates Ingress (together with TDP-Settings.gateway.ingress.enabled)false
ingress.ingressClassNameExposureIngress class"" (renders nginx)
ingress.rules[0].hostExposureIngress hostnamenone, required
gatewayApi.parentRefsExposureGateway to which HTTPRoute attaches[]
gatewayApi.nifi.enabledExposureCreates the NiFi HTTPRoutefalse
gatewayApi.nifi.hostnamesExposureHTTPRoute hostnamesnifi.tdp.local
gatewayApi.nifi.sessionPersistenceExposureHTTPRoute session affinity (experimental channel){}
gatewayApi.nifi.backendTLS.enabledExposureCreates BackendTLSPolicy for NiFi over HTTPSfalse
TDP-Settings.gateway.ingress.enabledExposureExposes NiFi through Ingress (together with ingress.enabled)false
TDP-Settings.gateway.gatewayApi.enabledExposureExposes NiFi through Gateway APIfalse

For the complete parameter list, consult the chart's values.yaml or run helm show values for the installed version.

Next steps​