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.
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
- 1 · First steps
- 2 · More nodes and disk space
- 3 · nifi.properties
- 4 · Publish at a URL
- 5 · OpenShift
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.
One node (id: 1) in the group default_group, with requests and limits from resourcesRequirements and volumes from storageConfigs.
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.
ZooKeeper as a subchart, with one replica and a persistent volume, at address <RELEASE_NAME>-zookeeper.
Service tdp-nifi-service of type NodePort, on the port from nifiCluster.security.port. No Ingress or Gateway API.
HTTP, without a login screen or per-user access control. To require login, see Security - NiFi.
What starts in the namespace with chart defaults
- 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. - 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) - 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) - 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) - 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) - 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) - 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) - 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)
Check the TDP license
The chart requires a valid TDP license installed in the cluster.
kubectl get platformlicenses -A
Success criteria
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.
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
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>.
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
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.
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
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:
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.
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
http://<NODE_IP>:<NODE_PORT>/nifi, without a login screen.Add nodes, adjust resources and protect data repositories.
Sizing NiFi means adjusting the nodes, the pods that run the flows: how many nodes the cluster has, how much CPU and memory each node receives and how volumes are configured for NiFi repositories (flowfile, content and provenance), where in-flight data lives. ZooKeeper, which coordinates the nodes, also has adjustable replicas and volume size.
NiFi is running real flows and one node is not enough, or in-flight data must survive reinstallation.
The chart already sets the starting point: one node, with the CPU and memory requests and limits of the default_group group, and all volumes with reclaimPolicy: Delete, deleted on uninstallation. The node count does not follow the load: adding nodes, adjusting resources or keeping volumes after uninstallation are your adjustments, in the values file.
One node, in nifiCluster.nodes, referencing the group default_group.
CPU and memory requests and limits in nifiCluster.nodeConfigGroups.default_group.resourcesRequirements. JVM heap settings are in nifiCluster.readOnlyConfig.bootstrapProperties.overrideConfigs (values in All parameters).
Five volumes per node in storageConfigs: flowfile-repository, content-repository, provenance-repository, logs and data, todos with reclaimPolicy: Delete.
One replica (zookeeper.replicaCount), with a persistent volume in the cluster's default StorageClass.
Two nodes in the same group and the repositories
- 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. - 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) - 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) - 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) - 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) - 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) - NiFi repositories. One persistent volume per repository on each node: in-flight data, content and provenance history. With reclaimPolicy Retain, volumes remain after uninstallation. Chart default:
reclaimPolicy Delete. (nifiCluster.nodeConfigGroups.default_group.storageConfigs) - 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)
1nifiCluster:2nodes:3 - id: 14 nodeConfigGroup: "default_group"5 - id: 26 nodeConfigGroup: "default_group"
Each entry is a NiFi node. Your file's list replaces the chart list: repeat node 1.
- Node list (linha 2). Each entry is a NiFi node. Your file's list replaces the chart list: repeat node 1.
- New node (linha 5). Add entries with id 2, 3 and so on, referencing the desired configuration group.
Using the command line instead of the values file:
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
--set nifiCluster.nodes[1].id=2 \
--set nifiCluster.nodes[1].nodeConfigGroup=default_group
With more than one node and login enabled, URL access requires session affinity: see the scenario Publish at a URL.
1nifiCluster:2nodeConfigGroups:3 default_group:4 resourcesRequirements:5 limits:6 cpu: "4"7 memory: "8Gi"8 requests:9 cpu: "2"10 memory: "4Gi"
Nodes referencing default_group receive these resources.
- Configuration group (linha 3). Nodes referencing default_group receive these resources.
- limits (linha 5). The CPU and memory limit for each node.
- requests (linha 8). What Kubernetes reserves for each node.
1nifiCluster:2nodeConfigGroups:3 default_group:4 storageConfigs:5 - name: flowfile-repository6 mountPath: /opt/nifi/flowfile_repository7 reclaimPolicy: Retain8 pvcSpec:9 accessModes: [ReadWriteOnce]10 resources:11 requests:12 storage: 1Gi13 - name: content-repository14 mountPath: /opt/nifi/content_repository15 reclaimPolicy: Retain16 pvcSpec:17 accessModes: [ReadWriteOnce]18 resources:19 requests:20 storage: 1Gi21 - name: provenance-repository22 mountPath: /opt/nifi/provenance_repository23 reclaimPolicy: Retain24 pvcSpec:25 accessModes: [ReadWriteOnce]26 resources:27 requests:28 storage: 1Gi29 - name: logs30 mountPath: /opt/nifi/nifi-current/logs31 reclaimPolicy: Delete32 pvcSpec:33 accessModes: [ReadWriteOnce]34 resources:35 requests:36 storage: 5Gi37 - name: data38 mountPath: /opt/nifi/data39 reclaimPolicy: Delete40 pvcSpec:41 accessModes: [ReadWriteOnce]42 resources:43 requests:44 storage: 5Gi
storageConfigs is a list: your file replaces the chart list entirely. Repeat every entry, each with mountPath and pvcSpec.
- Entire list (linha 4). storageConfigs is a list: your file replaces the chart list entirely. Repeat every entry, each with mountPath and pvcSpec.
- Retain (linha 7). The default is Delete, inherited from NiFiKop. In production, use Retain for all three repositories to avoid losing data during uninstallation.
- Size (linha 12). Adjust each volume's size to your workload.
- Logs and data (linha 29). Log and data volumes keep Delete.
1zookeeper:2replicaCount: 13persistence:4 storageClass: <STORAGE_CLASS>5 size: 4Gi
Number of ZooKeeper replicas.
- Replicas (linha 2). Number of ZooKeeper replicas.
- StorageClass (linha 4). Empty uses the cluster's default StorageClass.
- Size (linha 5). ZooKeeper volume size.
Write the blocks in the values file
Only the blocks you want to change. The rest keeps the chart defaults.
Blocks are at the root of the values file. In nodes and storageConfigs, your list replaces the chart's list.
Apply to the release
NiFiKop adjusts nodes based on the updated NifiCluster.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> get pvc
One pod per declared node reaches Running, and each node has its volumes.
Add NiFi properties through the values file.
You need to change a NiFi property: the flowfile repository checkpoint interval, provenance repository implementation, content repository behavior, or reduce disk writes in a development environment. The chart generates nifi.properties from the selected security configuration and appends the text you enter in nifiCluster.readOnlyConfig.nifiProperties.overrideConfigs.
Generated by the chart from nifiCluster.security. No extra properties.
1nifiCluster:2readOnlyConfig:3 nifiProperties:4 overrideConfigs: |5 nifi.flowfile.repository.checkpoint.interval=5 mins
One property per line, in nifi.properties key=value format.
- Text block (linha 4). One property per line, in nifi.properties key=value format.
- Example (linha 5). Flowfile repository checkpoint interval. Some properties affect data persistence or performance: consult NiFi documentation before applying in production.
Apply to the release
NifiCluster now includes the new properties.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
kubectl -n <NAMESPACE> get nificlusters
kubectl -n <NAMESPACE> get pods
NifiCluster remains in the list and nodes are Running.
Replace NodePort with a fixed address through Ingress or Gateway API.
So far, NiFi is accessed through a node IP and the allocated NodePort, which varies between clusters. For the team to use a fixed address, NiFi must be published outside the cluster. The chart supports two mutually exclusive methods: Ingress, published as a Route by the OpenShift router. Or Gateway API, where an existing Gateway receives traffic and an HTTPRoute forwards it to NiFi. Neither is enabled by default, and an Ingress controller is only needed when enabling Ingress.
Service tdp-nifi-service of type NodePort. Ingress and Gateway API disabled.
Ingress and HTTPRoute always forward to the NiFi Service, on the port from nifiCluster.security.port, which follows the switch between HTTP and HTTPS.
With Ingress, the chart creates an Ingress using your hostname and controller class in ingress.ingressClassName. During verification, the hostname must resolve to the Ingress controller's external IP. With NodePort or Gateway API, this selection does not change what you configure.
With Ingress, the OpenShift router publishes the chart's Ingress as a Route, and the diagram shows it as a Route. The hostname uses the cluster's apps domain, such as nifi-<NAMESPACE>.apps.<CLUSTER_DOMAIN>, and is verified with kubectl get route. With NodePort or Gateway API, this selection does not change what you configure.
How the team reaches NiFi
How NiFi is reached
- 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. - 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) - 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) - 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) - 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) - 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) - 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) - 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)
How NiFi is reached: NodePort (default)
- 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. - 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) - 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) - 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) - 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) - 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) - 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) - 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)
How NiFi is reached: Ingress
- Client. The browser connects through a fixed hostname, published by the Ingress. Chart default:
Service NodePort. - 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) - Ingress. Ingress publishes the Service at a hostname through the cluster's Ingress controller. Only the first rule and first path apply. Chart default:
disabled. (ingress.enabled · TDP-Settings.gateway.ingress.enabled) - 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) - 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) - 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) - 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) - 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) - 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)
How NiFi is reached: Gateway API
- Client. The browser connects through a fixed hostname, published by the HTTPRoute. Chart default:
Service NodePort. - 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) - HTTPRoute (Gateway API). An existing Gateway in the cluster receives traffic, and the HTTPRoute created by the chart routes the NiFi hostname to the Service. Chart default:
disabled. (gatewayApi.nifi.enabled · TDP-Settings.gateway.gatewayApi.enabled) - 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) - 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) - 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) - 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) - 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) - 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)
NodePort. Nothing new is created: the NiFi Service already opens a port on each cluster node (scenario 1). NodePort: Best suited when access is for testing and maintenance. For a fixed address, choose Ingress or Gateway API above.
Ingress. The chart creates an Ingress with your hostname and cluster class (nginx, openshift-default or another). Ingress: Best suited when the cluster already has an Ingress controller, or when it runs on OpenShift. Only the first rule and first path are used. Cookie affinity annotations keep each browser on one node, which matters with multiple nodes and login enabled. Blocks are at the root of the values file.
1ingress:2enabled: true3ingressClassName: <INGRESS_CLASS>4annotations:5 nginx.ingress.kubernetes.io/backend-protocol: "HTTP"6 nginx.ingress.kubernetes.io/affinity: "cookie"7 nginx.ingress.kubernetes.io/affinity-mode: "persistent"8 nginx.ingress.kubernetes.io/session-cookie-name: "INGRESSCOOKIE"9 nginx.ingress.kubernetes.io/session-cookie-path: "/"10rules:11 - host: <NIFI_HOSTNAME>12 paths:13 - path: /14 pathType: Prefix15tls: []1617TDP-Settings:18gateway:19 ingress:20 enabled: true21 gatewayApi:22 enabled: false
Ingress is only created when ingress.enabled and TDP-Settings.gateway.ingress.enabled are enabled.
- Two keys (linha 2). Ingress is only created when ingress.enabled and TDP-Settings.gateway.ingress.enabled are enabled.
- Ingress class (linha 3). nginx on Kubernetes, openshift-default on OpenShift, or your cluster's class. Empty renders nginx.
- backend-protocol (linha 5). HTTP with NiFi without login. With login enabled, NiFi switches to HTTPS and this annotation must use HTTPS (see Security - NiFi).
- Affinity (linha 6). Cookie that keeps each browser on the same node.
- Hostname (linha 11). On Kubernetes, something like nifi.tdp.local. On OpenShift, nifi-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
- TDP-Settings (linha 17). Enables Ingress and keeps Gateway API disabled: they are mutually exclusive.
Add the block to the values file
Replace class and hostname placeholders with your cluster's values.
The ingress and TDP-Settings blocks are at the root of the values file.
Apply to the release
Ingress is created in the same namespace as NiFi.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
The hostname resolves to the Ingress controller (through DNS or your machine's /etc/hosts) and the interface opens at http://<NIFI_HOSTNAME>/nifi.
The Route lists the published hostname and the interface opens at http://<NIFI_HOSTNAME>/nifi:
kubectl -n <NAMESPACE> get route
Gateway API. The cluster already has a Gateway (for example tdp-gateway in namespace tdp) receiving traffic for multiple services. The chart creates an HTTPRoute attached to it, and the NiFi hostname is routed to the Service. Gateway API: Best suited when the cluster already uses a Gateway shared among services. For HTTPS, TLS is configured on that Gateway's listener, with protocol: HTTPS and the certificate reference. The HTTPRoute has no TLS configuration. The gatewayApi.gateway block is only needed when the chart creates its own Gateway. To use an existing Gateway, keep gatewayApi.gateway.enabled: false and provide the Gateway in parentRefs. Blocks are at the root of the values file.
1gatewayApi:2parentRefs:3 - name: <GATEWAY_NAME>4 namespace: <GATEWAY_NAMESPACE>5nifi:6 enabled: true7 hostnames:8 - <NIFI_HOSTNAME>9 rules:10 - matches:11 - path:12 type: PathPrefix13 value: /14 backendRefs:15 - name: ""1617TDP-Settings:18gateway:19 ingress:20 enabled: false21 gatewayApi:22 enabled: true
The existing Gateway to which the route attaches: its name and namespace, such as tdp-gateway in tdp or my-gateway in infrastructure.
- parentRefs (linha 2). The existing Gateway to which the route attaches: its name and namespace, such as tdp-gateway in tdp or my-gateway in infrastructure.
- Hostname (linha 8). The same examples as Ingress: nifi.tdp.local or nifi-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
- backendRefs (linha 15). The empty name is filled with the external NiFi Service, and the port with nifiCluster.security.port.
- TDP-Settings (linha 22). Enables HTTPRoute and disables Ingress.
Browser certificate. The certificate seen by the browser is configured on the Gateway listener (listeners[].tls), never on the HTTPRoute.
NiFi over HTTPS. With NiFi over HTTPS (nifiCluster.security.protocol: https, see Security - NiFi), the Gateway must re-encrypt traffic to it. Enable gatewayApi.nifi.backendTLS.enabled, set hostname to a DNS name (SAN) from the node certificate and provide the CA in caCertificateRefs, a ConfigMap with a ca.crt key. For a public CA certificate, use wellKnownCACertificates instead. The chart then creates a BackendTLSPolicy for the NiFi Service, which your Gateway implementation must support. For Gateway API earlier than v1.4, use backendTLS.apiVersion: gateway.networking.k8s.io/v1alpha3.
Multiple nodes with login. With multiple nodes and login enabled, each browser must stay on one node. The chart applies gatewayApi.nifi.sessionPersistence to each HTTPRoute rule without its own setting:
1gatewayApi:2nifi:3 sessionPersistence:4 type: Cookie5 sessionName: NIFI_GW_AFFINITY6 cookieConfig:7 lifetimeType: Session
The field belongs to the Gateway API experimental channel. With standard-channel CRDs, the API server discards it and Argo CD shows a persistent diff. If your implementation lacks support, use its affinity policy, such as Envoy Gateway BackendTrafficPolicy or Istio DestinationRule.
- Experimental channel (linha 3). The field belongs to the Gateway API experimental channel. With standard-channel CRDs, the API server discards it and Argo CD shows a persistent diff. If your implementation lacks support, use its affinity policy, such as Envoy Gateway BackendTrafficPolicy or Istio DestinationRule.
- Cookie (linha 4). Affinity uses a cookie with this name. With a single node or no login, leave the block empty.
Add the block to the values file
Replace hostname and Gateway placeholders with your cluster's values.
The gatewayApi and TDP-Settings blocks are at the root of the values file.
Apply to the release
HTTPRoute is created in the same namespace as NiFi.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
HTTPRoute appears in the list and the interface opens at http://<NIFI_HOSTNAME>/nifi:
kubectl -n <NAMESPACE> get httproute
For an overview of external component exposure, see External exposure.
Give nodes and the operator the UID required by the namespace SCC.
The cluster runs OpenShift. The restricted-v2 SCC requires pods to run with a UID and GID from the namespace's assigned range. Two chart components need this: NiFi nodes, which receive the namespace UID in runAsUser and fsGroup. And the NiFiKop operator, whose chart sets a fixed UID when nifikop.podSecurityContext is undefined, so it is configured without a UID for the SCC to assign one.
runAsUser and fsGroup empty in nifiCluster.nodeConfigGroups.default_group.
nifikop.podSecurityContext undefined: the fixed UID from the NiFiKop chart applies.
NiFi on OpenShift
- Client. The browser connects through a fixed hostname, published by the Route. Chart default:
Service NodePort. - 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) - Route (via Ingress). The chart renders an Ingress and the OpenShift router publishes it as a Route. Chart default:
disabled. (ingress.enabled · TDP-Settings.gateway.ingress.enabled) - 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. On OpenShift, the group's runAsUser and fsGroup are set to the namespace UID. Chart default:
one node (id 1), HTTP, no login. (nifiCluster.nodes · nifiCluster.nodeConfigGroups.default_group) - 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) - 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. On OpenShift, the operator's podSecurityContext omits the UID so the SCC assigns one. Chart default:
enabled, watches only the release namespace, webhook disabled. (nifikop.enabled · nifikop.watchOwnNamespace · nifikop.webhook.enabled) - 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) - 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) - 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)
1nifiCluster:2nodeConfigGroups:3 default_group:4 runAsUser: "<UID>"5 fsGroup: "<UID>"67nifikop:8podSecurityContext:9 runAsNonRoot: true10 runAsUser: null
Enter the UID obtained in the first step below, for example 1000680000. Helm does not expand shell variables in a values file.
- The number, not the variable (linha 4). Enter the UID obtained in the first step below, for example 1000680000. Helm does not expand shell variables in a values file.
- Operator without a UID (linha 9). runAsNonRoot enabled and runAsUser null: the SCC assigns the operator a UID from the namespace range.
Find the namespace UID
The start of the UID range OpenShift assigned to the namespace.
uid=$(kubectl get namespace <NAMESPACE> -o=jsonpath='{.metadata.annotations.openshift\.io/sa\.scc\.uid-range}' | sed 's/\/10000$//' | tr -d '[:space:]')
echo "$uid"
Install with the UID
Through the values file above or directly on the command line.
Using the values file:
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Or passing the variable from the previous step:
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
--set nifiCluster.nodeConfigGroups.default_group.runAsUser="${uid}" \
--set nifiCluster.nodeConfigGroups.default_group.fsGroup="${uid}" \
--set nifikop.podSecurityContext.runAsNonRoot=true \
--set nifikop.podSecurityContext.runAsUser=null
Success criteria
kubectl -n <NAMESPACE> get pods
The operator, ZooKeeper and NiFi nodes reach Running, with no SCC rejections in events.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The response includes the cause, action and command.
- 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.
- 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).
- 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).
- 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).
- 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).
- 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).
- 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.
- 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.
- 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
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:
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âmetro | Description | Chart default |
|---|---|---|
tdp-nifi.enabledGeneral | Enables NiFi deployment | true |
nifiCluster.clusterImageGeneral | NiFi node image (includes the Ranger plugin) | registry.tecnisys.com.br/tdp/images/nifi:1.28.0-1 |
nifiCluster.nodesGeneral | NiFi node list, each with id and nodeConfigGroup | one node, id: 1 |
nifiCluster.zkAddressGeneral | ZooKeeper address | <release>-zookeeper:2181 |
nifiCluster.zkPathGeneral | NiFi path in ZooKeeper | /nifi |
nifiCluster.readOnlyConfig.nifiProperties.overrideConfigsGeneral | Properties added to nifi.properties | not defined |
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.requests.cpuResources | CPU reserved for each node | 2 |
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.requests.memoryResources | Memory reserved for each node | 4Gi |
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.limits.cpuResources | CPU limit per node | 4 |
nifiCluster.nodeConfigGroups.default_group.resourcesRequirements.limits.memoryResources | Memory limit per node | 8Gi |
nifiCluster.readOnlyConfig.bootstrapProperties.overrideConfigsResources | JVM arguments, including heap settings | -Xms2g, -Xmx2g |
nifiCluster.nodeConfigGroups.default_group.storageConfigsResources | Volumes per node (list replaced entirely) | 1Gi repositories, 5Gi logs and data, all Delete |
nifiCluster.pod.readinessProbe.initialDelaySecondsResources | Node readiness probe initial delay | 120 |
zookeeper.replicaCountZooKeeper | ZooKeeper replicas | 1 |
zookeeper.persistence.storageClassZooKeeper | ZooKeeper StorageClass | "" (cluster default) |
zookeeper.persistence.sizeZooKeeper | ZooKeeper volume size | 4Gi |
nifikop.enabledOperator | Enables the NiFiKop operator | true |
nifikop.watchOwnNamespaceOperator | The operator watches only the release namespace | true |
nifikop.webhook.enabledOperator | Operator admission webhook (requires cert-manager) | false |
nifikop.certManager.enabledOperator | Webhook integration with cert-manager | false |
nifiCluster.nodeConfigGroups.default_group.runAsUserOpenShift | Node UID. On OpenShift, the namespace UID | "" |
nifiCluster.nodeConfigGroups.default_group.fsGroupOpenShift | Volume GID. On OpenShift, the namespace UID | "" |
nifikop.podSecurityContextOpenShift | Operator security context. On OpenShift, runAsNonRoot: true and runAsUser: null | not defined |
nifiCluster.externalServices[0].spec.typeAccess | NiFi Service type | NodePort |
nifiCluster.security.portAccess | NiFi port (Service and Ingress destination) | 8080 (8443 with HTTPS) |
ingress.enabledExposure | Creates Ingress (together with TDP-Settings.gateway.ingress.enabled) | false |
ingress.ingressClassNameExposure | Ingress class | "" (renders nginx) |
ingress.rules[0].hostExposure | Ingress hostname | none, required |
gatewayApi.parentRefsExposure | Gateway to which HTTPRoute attaches | [] |
gatewayApi.nifi.enabledExposure | Creates the NiFi HTTPRoute | false |
gatewayApi.nifi.hostnamesExposure | HTTPRoute hostnames | nifi.tdp.local |
gatewayApi.nifi.sessionPersistenceExposure | HTTPRoute session affinity (experimental channel) | {} |
gatewayApi.nifi.backendTLS.enabledExposure | Creates BackendTLSPolicy for NiFi over HTTPS | false |
TDP-Settings.gateway.ingress.enabledExposure | Exposes NiFi through Ingress (together with ingress.enabled) | false |
TDP-Settings.gateway.gatewayApi.enabledExposure | Exposes NiFi through Gateway API | false |
For the complete parameter list, consult the chart's values.yaml or run helm show values for the installed version.