Why teams run Apache NiFi on Kubernetes and what makes it harder than it looks
Running Apache NiFi on Kubernetes is feasible, because NiFi can coordinate a cluster through Kubernetes-based leader election and state, using ConfigMaps or Leases instead of an external ZooKeeper ensemble. The harder part is everything around that: repository persistence, network exposure and upgrade order decide whether the cluster behaves like a managed workload or like a fragile set of pods. A platform team that wants NiFi 2 managed like its other workloads should plan those three areas before choosing a Helm chart or writing manifests.
Apache NiFi is licensed under the Apache License 2.0, and the project offers no paid edition. The software itself costs nothing to license, so the cost of running it sits in engineering and operations: building and maintaining the container images, sizing and provisioning storage, configuring TLS and identity, testing upgrades, and staffing on-call coverage. Those costs recur for as long as the cluster runs, and they grow with the number of flows, nodes and environments. Ask any partner quoting this work to separate one-time build effort from the ongoing operations effort that follows go-live.
This topic assumes NiFi 2.x. The NiFi downloads page states that NiFi 1.28 is the last minor release of the version 1 series and that 1.28.1 reached end of support on December 8, 2024, so a new cluster should not start on 1.x. NiFi 2 requires Java 21 as the minimum runtime, which should be reflected in the base image choice. Flow design, identity integration and hardening also shape the deployment, and those decisions are covered in the sibling topics on high availability, SSO and security hardening, so treat this page as the platform layer beneath them.
Which Kubernetes objects and NiFi settings make up the cluster
A NiFi 2 cluster on Kubernetes is a set of pods that share one flow definition, coordinate through cluster state and expose a secured UI. Each object below holds part of that state, and a mistake in any one of them shows up as a node that will not join, a flow that drifts between nodes, or data that disappears on restart.
Node pods and node identity
Each NiFi node runs as a pod with a stable network identity, so the cluster can address every member by name during coordination. The pod template fixes the Java 21 runtime and the NiFi image version that every node must share. Check that all nodes use the same NiFi version and that each pod keeps its identity across restarts. A node that changes name or version mid-rollout can fail to rejoin the cluster and leave the flow out of step with its peers.
NiFi admin guideRepository persistent volumes
NiFi writes its flow file, content, provenance and database repositories to disk, and each pod needs its own volume for them. Losing a volume loses queued FlowFiles and provenance history for that node, even when the rest of the cluster keeps running. Confirm that volumes are bound per pod, that reclaim policies stop accidental deletion when a StatefulSet is scaled down, and that the storage class supports the I/O the repositories need. Ask your storage team to confirm these settings in your environment.
Flow configuration file flow.json.gz
The flow.json.gz file holds the dataflow definition that every pod loads at startup. In NiFi 2 this is the flow configuration format, and the migration guidance changes it from flow.xml.gz. If the file is missing, stale or different across nodes, pods may start with an unexpected flow or refuse to join. Mount it from persistent storage rather than baking it into the image, and version changes to it through your normal change process.
Migration guidanceConfigMaps and Leases for cluster state
NiFi can use Kubernetes ConfigMaps or Leases for cluster state and leader election instead of an external ZooKeeper ensemble. The leader handles cluster-wide decisions, so a broken lease means no node can take that role. Grant the NiFi service account only the verbs it needs on these objects, and check that the cluster can elect a new coordinator after a pod is deleted. Confirm the exact coordination mode your NiFi 2 release supports before you choose it.
Service and ingress for UI and cluster port
A Service exposes the NiFi web UI and the cluster communication port to other pods, while an ingress publishes the UI to users. Node-to-node traffic must reach the cluster port directly, so routing the UI through an ingress alone does not cover the cluster. When no security configuration is provided, NiFi binds to 127.0.0.1, so the UI is unreachable from outside the pod until you set the web bindings. Verify both the UI path and the internal cluster path after every change.
TLS keystore and truststore secrets
Kubernetes Secrets hold the keystore and truststore that NiFi uses for HTTPS and for node-to-node trust, along with the passwords that unlock them. Certificates that expire or mismatch between nodes cause nodes to reject one another and the UI to show certificate errors. Store these in a secrets manager or sealed secrets, restrict who can read them, and plan rotation before expiry. Also set the sensitive properties key so encrypted flow values survive pod restarts.
Which coordination, storage and exposure choices fit your cluster
This table compares the coordination, storage and exposure options for a NiFi 2 cluster on Kubernetes and names the operational cost each one leaves with your team. Read each row against your own platform team's ownership model and your storage vendor's behavior. The main takeaway is that the coordination choice decides who runs an extra service, and the storage choice decides how fast a node loss recovers.
| Option | When it fits | Operational cost |
|---|---|---|
| Kubernetes Leases for leader election and state | You want no extra coordination service and your cluster team already manages RBAC for the NiFi namespace | Your team owns the Lease and RBAC configuration and must confirm the NiFi version supports this mode before go-live |
| Kubernetes ConfigMaps for state | You need Kubernetes-native state storage and accept the mode the administration guide describes for Kubernetes coordination | Writes go through the API server, so your team must monitor API load and confirm permissions for each node's service account |
| Embedded ZooKeeper | A small, self-contained cluster where a separate ZooKeeper deployment is not justified | Ensemble sizing, upgrades and quorum recovery fall to the NiFi team, and the embedded instances share the NiFi node lifecycle |
| External ZooKeeper service | Your organization already runs a managed ZooKeeper ensemble with an owner and runbooks | A separate team or service owner must agree on backup, upgrade windows and access, and a ZooKeeper outage affects NiFi cluster coordination |
| Per-node persistent volumes for repositories | Each node keeps its own content, flowfile and provenance repositories, and you want node-local I/O | Reattachment depends on the storage class: confirm whether a rescheduled pod can bind to its previous volume after node loss with your Kubernetes distribution |
| Shared storage for repositories | You need a single storage pool that is easier to snapshot, but must verify NiFi's repository behavior on shared filesystems | Shared volume performance, locking and failover behavior must be tested under load, and the storage team owns capacity and backup |
| TLS terminated at the ingress | Your ingress controller manages certificates and you want one rotation point for user-facing traffic | Cluster-internal traffic still needs its own certificates, and rotation must reach NiFi's keystore and truststore, which pods read at startup |
| TLS passed through to NiFi | Your security policy requires encryption up to the NiFi pod with no plaintext hop inside the cluster | Each pod needs certificate distribution and a restart or reload path on rotation, and the ingress must forward the connection without termination |
How the NiFi pods, state, storage and ingress connect
The diagram starts with users outside the trust boundary, whose requests reach an ingress that terminates TLS before entering the cluster network. The ingress hands traffic to a single Service, which spreads it across several NiFi node pods. Each pod keeps its own repository volumes, while coordination and leader election run through the Kubernetes API using Leases or ConfigMaps. Check that TLS terminates where you expect, that each node has separate storage, and that the pods can reach the API for state.
Traffic enters through TLS, while each node keeps its own storage and coordinates through the Kubernetes API.
How to build a NiFi 2 cluster on Kubernetes in order
This sequence takes a team from an empty Kubernetes namespace to a secured, multi-node NiFi 2 cluster that elects a leader, keeps its flow state through pod restarts and serves its UI through TLS-terminated ingress. Each step closes with a check, so problems surface before the next layer is added.
Confirm Java 21 and the NiFi 2 artifact source
Before writing any manifests, the platform team confirms the target NiFi 2 release and the image or artifact it will be pulled from. The NiFi administration guide lists Java 21 as the minimum runtime, so the team checks that the chosen image ships with it and records the image digest it intends to deploy. If the team plans to use the optional Python-based processors, it also confirms a supported Python version (3.10, 3.11 or 3.12), and notes that the guide describes those processors as beta. The check is a written record of the release version, image digest and Java runtime, reviewed by the team lead. Confirm the current release on the NiFi downloads page before pinning it.
Create namespace and RBAC for coordination
Create a dedicated namespace for the NiFi cluster and a service account for its pods. NiFi can coordinate on Kubernetes using either ConfigMaps or Leases for state and leader election, so the role must grant get, list, watch, create, update and patch on the resource type the team chooses, and nothing broader. Bind the role to the service account only within this namespace. Confirm the choice of ConfigMaps or Leases against the NiFi administration guide for the release in use. The check is
kubectl auth can-ireturning yes for the required verbs on the chosen resource from the service account, and no for a sample resource outside the namespace.Provision storage classes and volumes for repositories
NiFi keeps its flow, content, provenance and state data in separate repositories, and each needs its own persistent volume claim so that data survives pod rescheduling. The platform team selects a storage class that supports the access mode the StatefulSet requires, sets reclaim policy deliberately, and sizes each claim with the flow owners, since provenance and content volumes grow with traffic. Confirm with the storage vendor how volume expansion and snapshots behave before go-live. The check is that every claim reports Bound and that a test file written to each mounted path persists after the pod is deleted and recreated.
Create TLS certificates and set security properties
Before any UI is exposed, the team issues certificates for the NiFi nodes and the ingress, stores them as Kubernetes secrets, and sets the security properties in the NiFi configuration. This ordering matters because, when no security configuration is provided, NiFi binds to 127.0.0.1 and its UI is reachable only through the loopback interface, which means the pod is not reachable by ingress until security is configured. Choose the authentication provider (single-user, LDAP, OpenID Connect, SAML 2.0 or X.509) now, and avoid planning new work around the deprecated Kerberos provider. Store the sensitive property key in a secret. The check is that the pod logs show the secure HTTPS listener on the expected interface and that a direct TLS request with the node certificate succeeds from inside the cluster.
Deploy a single node and confirm the flow loads
Deploy one NiFi node first, with the repositories and security settings from the previous steps. Import or place a small test flow so the node has a flow to load. NiFi 2 stores the flow configuration in flow.json.gz, and the platform team should confirm that the node reads and writes that file at startup, not the older flow.xml.gz format. Watch the startup logs for errors on the repositories, the Java runtime and the authentication provider. The check is that the UI loads through a port-forward, the test flow shows its processors in the expected state, and the flow.json.gz file exists on the flow repository volume.
Expand to a multi-node cluster and confirm leader election
Scale the StatefulSet to the intended number of nodes and let each node join the cluster through the configured coordination method. Each node needs its own volumes and a stable network identity so peers can find it. Confirm that the cluster elects a coordinator and that the cluster view lists every node as connected. Sizing the node count is a separate decision covered in the high availability guidance, and the team should confirm the coordination settings for the release in use. The check is that the cluster view shows all expected nodes as connected, exactly one node holds the coordinator role, and the lease or ConfigMap reflects the same leader.
Configure ingress and TLS for the UI
Create an ingress resource that routes the NiFi hostname to the cluster service and terminates TLS with the certificate issued earlier. Because NiFi's secure endpoint is already in place, the ingress should re-encrypt or pass TLS through according to the design, and the team should confirm the proxy host and proxy port settings that NiFi requires when it sits behind a reverse proxy. Test the login flow end to end with the chosen identity provider. The check is that the UI loads at the public hostname with a valid certificate chain, login succeeds with a test user, and the browser shows the expected cluster node list.
Run a failover test by deleting a pod
With the cluster healthy, delete one pod on purpose and watch what happens. The team should observe whether the leader role moves to another node, whether the restarted pod rejoins the cluster, and whether the flow and its state are intact afterward. Run the test while a sample flow is processing data so the effect on queued items is visible. Record the time to rejoin and any flow errors. The check is that the restarted pod rejoins the cluster with its original volumes, the flow version and queued data are preserved, and no processors stop unexpectedly. Repeat the test for the leader pod, since a leader change exercises a different path than a follower restart.
What drives the effort and cost of a NiFi Kubernetes deployment
This table lists the factors that change how much work and spend a NiFi 2 cluster on Kubernetes requires, why each one matters, and how to keep it manageable. Read it before requesting a quote, since each driver should appear as a line item or stated assumption in the written scope. Most of the one-time cost sits in design and testing, while node capacity, storage, certificate renewal and upgrades keep recurring after go-live.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| Flow count and complexity | Each flow adds design, parameter context, testing and documentation work. Flows with many custom processors, controller services or cross-flow dependencies take longer to validate on every upgrade. | Consolidate similar flows, use parameter contexts, and retire unused flows before the build starts. Ask the quote to list flows by name and complexity. |
| Data volume and repository sizing | Content, FlowFile, provenance and database repositories need persistent volumes sized for throughput and retention. Larger volumes raise storage spend and backup scope. | Set provenance retention deliberately, measure real throughput in a test cluster, and ask the quote to state the assumed volume and retention period. |
| Number of environments and their separation | Dev, test and production each need a cluster, namespace or set of configuration values, secrets and ingress. Separation rules (network, credentials, data) add design and review work. | Use one shared chart or manifest set with per-environment values. Ask whether lower environments will hold production data and how that is controlled. |
| Identity provider and certificate authority integration | SSO through OpenID Connect, SAML 2.0 or LDAP, and TLS certificates from an internal CA, each require coordination with identity and PKI owners and their change windows. | Agree the identity provider, group mapping and CA process in the design phase. Confirm who owns certificate issuance and renewal before the build. |
| Custom processor packaging and image builds | Custom NARs must be built, versioned and placed into container images. Each NiFi upgrade may require rebuilds and retesting of those components. | Keep custom code in a single build pipeline with pinned NiFi versions. Ask the quote whether image builds and rebuilds per upgrade are included. |
| Air-gapped image mirroring | In disconnected networks, NiFi, ZooKeeper-free coordination images, base images and dependencies must be mirrored and scanned through an approved transfer process, which adds lead time for every version change. | Mirror only the versions in scope, script the transfer, and document the import process so upgrades reuse it. Confirm the transfer process with the client's security team. |
| Compliance evidence requirements | Assessors may ask for configuration baselines, access reviews, backup and restore records, change history and logs. Producing and retaining this evidence adds one-time design and recurring operations work. | Define the evidence list at scoping. Generate it from the Git-managed deployment definitions where possible. Note that DeployOpen prepares evidence but auditors issue any assessment result. |
| Existing Kubernetes platform maturity | A platform with established ingress, storage classes, secrets management, monitoring and GitOps tooling shortens the build. A platform missing these requires the platform work to be scoped as well. | Inventory cluster capabilities before scoping. Ask the quote to state which platform components are assumed present and which are in scope. |
| Recurring operations and staff time | Node capacity, storage growth, certificate renewal, NiFi minor upgrades, Java runtime changes and security patching repeat for the life of the cluster and consume internal staff time. | Automate renewals and backups, schedule upgrades through a rolling process, and request a written recurring support scope or retainer terms in the quote. |
How the Kubernetes deployment changes by environment
In a managed cloud Kubernetes service inside the client's own cloud account, the cluster provider handles the control plane, while the client's team still owns the NiFi workloads, storage, network rules and access. Image and artifact delivery usually runs through the cloud's container registry and an artifact store the client controls, which keeps pulls inside the account. Storage choices follow the provider's block storage classes, and the performance tier of each class should be matched to the content and provenance repositories rather than left at a default.
- Image source: Pull the NiFi image and any custom NAR files from a private registry in the same account, with pinned tags and a documented rebuild path.
- Storage classes: Select block volume classes for the repositories and confirm their throughput and snapshot behavior with the provider.
- Identity and CA: Confirm that the cluster can reach the identity provider and internal certificate authority through approved egress or private endpoints.
- Network policy: Check that ingress controllers, load balancers and node-to-node traffic for clustering are permitted by the cloud security groups and cluster policies.
- Confirm with the platform team: Registry access, storage class names, egress paths and which account owns backups and encryption keys.
The client's network and policy team should confirm each dependency before the deployment design is approved.
On-premises Kubernetes in a data center gives the client direct control over hardware, storage arrays and network segments, but it also means the platform team supplies the components a cloud provider would normally include. Images and NAR artifacts typically come from an internal registry and an internal artifact repository, mirrored from approved external sources under change control. Storage depends on whichever CSI driver and storage backend the data center runs, so the repository volumes need a class with the latency and throughput the flow requires.
- Image source: Mirror the NiFi image and dependencies into the internal registry, and record how each mirror update is approved.
- Storage classes: Confirm which CSI driver serves the repository volumes, and whether it supports the expansion and snapshot behavior the design assumes.
- Identity and CA: Confirm routes from the cluster to the directory service, identity provider and internal certificate authority, including any firewall rules between zones.
- Load balancing: Confirm how external traffic reaches the ingress, whether through hardware load balancers, MetalLB or another mechanism the team already runs.
- Confirm with the platform team: Storage backend ownership, registry mirror process, firewall change lead times and who approves cluster-to-cluster or zone-to-zone traffic.
The client's network and policy team should confirm each dependency, especially the firewall rules that separate zones.
In an air-gapped Kubernetes cluster with no outbound internet access, nothing is fetched at deployment time. Every container image, NAR artifact, Helm chart or manifest must be brought in through an approved transfer process, scanned, and loaded into internal registries before the cluster can use it. Flow registry integrations that depend on public Git hosts need a separate design, and any Python processor dependencies must be packaged ahead of time. Identity and certificate services must be reachable entirely inside the isolated network.
- Image and NAR transfer: Define the transfer media, the signing and scanning steps, and the internal registry that receives each approved bundle.
- Storage classes: Confirm which local or network storage classes exist in the enclave, and test repository performance before committing to a sizing.
- Identity and CA: Confirm that the identity provider, directory service and internal certificate authority are inside the enclave and that certificate chains and revocation checks work without internet access.
- Version pinning: Record the exact NiFi and component versions in the bundle manifest, so later updates follow the same controlled transfer.
- Confirm with the platform team: Transfer approvals, registry location, offline package sources, and whether any Git-based flow versioning will run inside the enclave.
The client's network and policy team should confirm each dependency and the approved transfer path before any image is loaded.
How to secure the NiFi cluster and its Kubernetes exposure
A NiFi cluster on Kubernetes is reachable through the ingress, talks to its own nodes, and stores secrets and coordination state in the cluster. Each control below closes one part of that exposure, and they only hold together when they are set up and checked as a set.
TLS from ingress to nodes
Encrypt the path from the ingress controller to the NiFi UI and API, and between NiFi nodes in the cluster. Decide where TLS terminates and whether the ingress re-encrypts traffic to the pods. Check that the NiFi UI is not exposed on a plain HTTP port, and that node-to-node traffic is covered by certificates the cluster trusts. Confirm the certificate chain with the ingress and NiFi configuration before go-live.
NiFi admin guideKeystore and certificate secrets
NiFi keystores, truststores and their passwords belong in Kubernetes Secrets or an external secret manager, mounted into the pods rather than baked into images or flow files. Decide who issues and rotates certificates, and how a rotation reaches every node without a full outage. Confirm that secrets are not printed in pod logs or in the NiFi bootstrap configuration committed to source control.
Namespace and service account access
Restrict which namespaces, service accounts and roles can read NiFi Secrets and the Lease objects NiFi uses for leader election and state. Any identity that can read those objects can read keystores or influence cluster coordination. Review role bindings after each deployment and remove wildcard permissions. Ask your platform team to show the RBAC rules that apply to the NiFi namespace.
Authentication choices
NiFi supports single-user, LDAP, OpenID Connect, SAML 2.0 and X.509 client certificate authentication. Single-user mode suits only small or test setups. Kerberos is deprecated in NiFi, so do not select it for a new deployment. Decide which provider matches your identity system, and map groups to NiFi policies before users reach production flows.
Network policies for pod traffic
Use Kubernetes NetworkPolicy objects to limit inbound traffic to the NiFi pods to the ingress controller on the UI port and to other NiFi pods on the cluster port. Block direct access from other workloads and from outside the cluster. Confirm that your cluster network plugin enforces NetworkPolicy, because a policy that is written but not enforced gives no protection.
Sensitive property keys outside the flow
NiFi encrypts sensitive processor and controller service properties with a key. Store that key outside the flow definition, in a Secret or external manager, and never commit it to the flow repository or Git. Losing the key means encrypted properties cannot be read, and a leaked key exposes every stored credential. Document who holds the key and how it is backed up.
How to test that the cluster works and fails safely
Run the acceptance tests in a fixed order and record the result of each step. First, confirm that every node joins the cluster and that exactly one node holds the coordinator role after startup, using the cluster view in the NiFi UI and the node logs. Second, restart the whole cluster and confirm that the flow loads on every node with the same version and that no component is stuck in an invalid state. Third, delete one node pod with kubectl delete pod and check three things: the remaining nodes keep processing data, the replacement pod reattaches its flowfile, content and provenance repositories from its persistent volume claims, and the node rejoins without manual intervention. Fourth, test ingress and TLS from outside the cluster: confirm the certificate chain, confirm the hostname resolves to the ingress, and confirm that the UI and API return an authentication challenge rather than the canvas when no login is supplied. Fifth, roll back the image to the previous version in a test environment and confirm that the older node starts and reads the existing flow state. If it does not, you have learned that the upgrade path is one-way, which matters for the rollback plan.
Write each failure test down before running it, with the trigger, the expected result, the measured result and the owner. Examples include a node pod eviction during active load, a failed ingress controller, a drained Kubernetes node and a full restart with one persistent volume unavailable. Load testing should use the throughput and concurrency your team has set from its own data volumes and service-level targets, run against the production-like flow and not a single test processor. Measure queue backpressure, repository disk usage and processing latency during and after each test. Keep the load profile and the failure tests in version control so they can be repeated after each upgrade.
Confirm with your storage vendor or platform team how your specific storage class behaves when a node is lost. Ask whether a volume can be detached and reattached to a new node, how long that takes, whether the volume can be mounted by more than one pod at once, and what happens to data that was written but not yet flushed. The answers determine whether a pod delete test is a safe check or a source of data loss. Also confirm how the cluster handles a node that is gone for longer than expected, because the NiFi administration guide describes how Kubernetes coordination works and your storage behavior decides how much of that recovery is automatic.
What to monitor, back up, upgrade and document after go-live
Monitoring for a NiFi cluster on Kubernetes should cover both the NiFi view of the cluster and the Kubernetes view of the pods that host it. The platform team usually owns alerting and dashboards, while the NiFi team owns flow-level health. Confirm which metrics your NiFi version exposes and how your monitoring stack scrapes them before go-live, because metric names and endpoints differ between releases.
- Cluster membership: Alert when a node disconnects, is removed, or fails to rejoin after a restart, and record the expected node count.
- Leader status: Track which node holds the coordinator role and alert on frequent changes, which often point to lease or network instability.
- Repository disk use: Watch the content, flowfile and provenance volumes against their capacity, and alert well before they fill.
- Pod restarts: Alert on restart counts and OOM kills, and correlate them with NiFi bulletins and garbage collection logs.
- Certificate expiry: Monitor the expiry date of node, ingress and client certificates, with enough lead time to rotate them.
Keep dashboard exports, alert rules as code, and a log of alert responses. Confirm the thresholds with your own load tests.
Backup for NiFi on Kubernetes covers more than the flow definition. The repository volumes hold runtime state, the flow definition holds the dataflow, and the sensitive property keys and parameter values must be kept somewhere the cluster can read them but the flow files cannot leak them. The platform team usually owns volume snapshots, while the NiFi owner owns the flow definition and key custody. Confirm snapshot consistency with your storage provider before relying on it.
- Repository volumes: Snapshot the content, flowfile and provenance repositories on a schedule, and state in the runbook whether a restore must be taken with the node stopped.
- flow.json.gz: Back up the flow configuration file from every node's copy and store it in version control or an approved backup location.
- Sensitive property keys: Store the keys used to protect sensitive properties in a secrets manager, separate from the flow file and the volume backups.
- Parameter values: Keep parameter context values, especially secrets, in a managed store, and back up their definitions separately.
- Restore test: Restore into a non-production namespace at least once and record the time taken and any missing items.
Keep backup job logs, retention settings, and restore test records. Confirm retention periods against your own policy.
Upgrades on Kubernetes should be planned as rolling pod replacements that keep the cluster available, with flows tested on the new version before any production cutover. The NiFi team owns compatibility testing and the platform team owns the rollout. Follow the NiFi 2 minor releases, such as the NiFi 2.12.0 release dated September 13, 2026, and check each release's notes for removed or deprecated components before you schedule a change.
- Rolling pod replacement: Replace one node at a time, wait for it to rejoin and report healthy, then continue, so the cluster keeps quorum.
- Version tracking: Subscribe to the release announcements on the download page and record the version running in each environment.
- Flow testing: Run representative flows on the target version in a staging cluster, including custom processors and parameter contexts, before cutover.
- Rollback path: Keep the previous image tag and a repository snapshot taken before the change, and confirm the rollback steps in the runbook.
- NiFi 1.x note: NiFi 1.28.1 reached end of support on December 8, 2024. Any remaining 1.x cluster should be on a migration plan, not a standing deployment.
Keep change tickets, staging test results, and the version history for each environment.
Documentation turns a working cluster into one that another engineer or an auditor can review and recover. The platform team owns manifests and runbooks, the security team owns access and certificate records, and the NiFi team owns flow documentation and failover results. Store every item in version control so that changes are traceable to a person and a date.
- Runbooks: Write step-by-step procedures for node replacement, scaling, certificate rotation, restore, and rollback, and test each one at least once.
- Manifests or Helm values: Keep the Kubernetes manifests or Helm values for each environment in version control, with reviewed changes and a record of who approved them.
- Failover test results: Record the outcome of node loss, leader change, and pod eviction tests, including the observed time to recover and any flow data affected.
- Access and certificate inventory: List who holds cluster and registry access, and where each certificate and key is stored and when it expires.
- Evidence index: Map each record to the control or audit question it supports, so the same evidence can answer repeated requests.
Retain these records under your own retention policy and review them after each upgrade.
What buyers ask before running NiFi on Kubernetes
Can our in-house team run Apache NiFi on Kubernetes without a partner?
Yes, a team with Kubernetes, TLS and Java operations experience can run it, and the Apache License 2.0 places no restriction on doing so. The harder part is the set of decisions around it: StatefulSet layout, persistent volumes for the repositories, leader election, identity integration, certificate handling and upgrade sequencing. Ask whether your team has run a stateful Java cluster on Kubernetes before and whether it can own the runbooks after go-live. A partner is most useful when the team needs the work finished inside a defined window or wants a second set of eyes on the design.
What drives the cost and effort of a NiFi Kubernetes deployment?
The main drivers are the number of nodes, how many storage classes and volume types the repositories need, how many identity and certificate integrations must be built, and whether the flows will be migrated or built new. Other factors include the number of environments, the level of monitoring and backup you require, and how many change windows the rollout allows. Cost has two parts: one-time work to design and build the deployment, and recurring work to run upgrades, patch the cluster and keep runbooks current. Ask any provider to show these components separately in a written quote.
How long does a NiFi on Kubernetes rollout take?
The duration depends on scope, so no fixed number applies across environments. The timeline is shaped by cluster sizing, how quickly storage and network access are approved, identity provider setup, certificate issuance and how many test cycles the flows need before cutover. Ask for a phased plan that names the milestones, the client inputs each phase depends on and the acceptance tests. Treat any timeline given without that plan as an estimate to be confirmed in writing.
What does our team need to provide for the NiFi deployment?
The work needs access to the target Kubernetes cluster with agreed namespaces and permissions, a list of the storage classes available for the repositories, and details of the identity provider such as OpenID Connect or SAML 2.0 metadata or LDAP settings. It also needs a certificate authority or an agreed process for issuing TLS certificates, DNS records for the ingress hostname, and a named owner for approvals. Change windows for cluster restarts and upgrades should be booked up front. Confirm these inputs in the statement of work so delays are visible early.
Does a NiFi cluster on Kubernetes need ZooKeeper?
No, a NiFi cluster on Kubernetes does not require ZooKeeper. According to the NiFi administration guide, clusters on Kubernetes can use ConfigMaps or Leases for state and leader election instead of an embedded or external ZooKeeper. Confirm with your design review which option fits your cluster policies, since Lease-based coordination depends on the permissions your cluster grants to the NiFi service account. Teams that already run ZooKeeper for other systems may still prefer it for consistency.
Can we run NiFi 1.x on Kubernetes instead of migrating?
Running NiFi 1.x on Kubernetes is not a sound plan for new or continuing production work. The NiFi downloads page states that 1.28 is the last minor release of the version 1 series and lists an end-of-support date of December 8, 2024 for 1.28.1. The project explains that 1.x cannot be maintained further because it depends on Jetty 9.4, Spring Framework 5.3 and AngularJS 1.8, which cannot be upgraded in that line. The path forward is a planned migration to NiFi 2, with the 1.27.0 stepping stone in the migration guidance.
Does Apache NiFi have licensing costs for Kubernetes?
Apache NiFi is released under the Apache License 2.0 (SPDX: Apache-2.0), and the project itself offers no paid edition. Your costs are therefore the infrastructure, storage, staff time and any external support you choose to buy. Cloud or cluster charges, persistent volume costs, and the people who run upgrades all recur. Check any commercial NiFi-based product or managed service separately, since their terms are their own and not part of the Apache project.
What should a fixed-scope quote for this work include?
A fixed-scope quote should list the environments in scope, the cluster topology and node count, the storage design for each repository, the ingress and TLS approach, and the identity integration. It should name the deliverables, such as Helm or manifest code, runbooks, a backup and restore test, and an upgrade procedure. It should also state the client inputs it depends on, the acceptance criteria, the change process, and what happens if inputs arrive late. Ask which costs are one-time and which recur, and whether post-go-live support or upgrades are priced separately.
How DeployOpen scopes, builds, hands over and supports NiFi on Kubernetes
DeployOpen plans and implements Apache NiFi on Kubernetes inside your own clusters, cloud accounts or air-gapped networks. Each engagement follows a written, fixed scope, and the build is tested, documented and handed over to your platform and operations teams.
How we scope
- Written scope covers the NiFi 2 version, cluster node count, namespaces and target Kubernetes platform.
- Scope lists which repositories get persistent volumes, storage classes and reclaim behavior agreed with your platform team.
- Scope defines ingress, TLS certificate sources, identity provider integration and which NiFi features are in or out of the work.
How we build
- Deploy the cluster with Kubernetes-based state and leader election, confirming the RBAC permissions it needs for ConfigMaps or Leases.
- Configure repository volumes, ingress and TLS, then test node restarts, scaling events and failover against the agreed scope.
- Run a rolling upgrade rehearsal on a non-production cluster so the upgrade path is proven before any production change.
How we hand over
- Deliver manifests, Helm or Kustomize configuration and parameter values stored in your own version control system.
- Provide runbooks for scaling nodes, rotating certificates, restoring repositories and handling a failed pod.
- Walk your operations team through the cluster, the test results and the open items agreed in the written scope.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, agreed separately from the build.
- Retainer work can cover following NiFi minor releases, reviewing Kubernetes version changes and rerunning failover tests.
- Confirm with us during scoping exactly which incidents, response times and upgrade tasks a retainer includes.

