A Kubernetes operator for Apache NiFi 2.x. A NiFiCluster resource
(nifi.ksolves.com/v1alpha1) describes one NiFi cluster, one node group of up to 3 nodes. The
operator runs the node group as a StatefulSet and manages cluster coordination (Kubernetes
Leases), TLS, login credentials, the cluster Service and clean scale-down.
Each NiFiCluster has one node group of at most 3 NiFi nodes, and users log in with NiFi's single-user login. Larger clusters, several node groups (NiFiNodeGroup) and single sign-on (OIDC) are part of Ksolves' commercial edition; see Support.
- Kubernetes 1.32 or newer, or OpenShift/OKD 4.19.
- Helm 3 or newer.
- Nothing else for NiFi itself: the operator runs the stock
apache/nifiimages, NiFi 2.11 or newer (compatibility). - Optional: cert-manager for the webhook certificate; without it the chart generates one.
To build from source: Go 1.27 (the version in go.mod) and Docker.
Download the chart from the latest release and install it into a namespace that allows privileged pods (the CSI driver mounts host directories):
kubectl create namespace nifi-operator
kubectl label namespace nifi-operator pod-security.kubernetes.io/enforce=privileged
helm install nifi-operator nifi-operator-1.0.0.tgz -n nifi-operator --waitOr install straight from Docker Hub, with no download (Helm 3.8 or newer pulls the chart over
OCI from the same ksoperator/nifi-operator repo as the images):
helm install nifi-operator oci://registry-1.docker.io/ksoperator/nifi-operator --version 1.0.0 \
-n nifi-operator --waitThe images are public on Docker Hub (ksoperator/nifi-operator, and apache/nifi for NiFi);
Verifying the images shows how to check them. Values for images, the CSI driver, the webhook certificate and OpenShift
are described in Installation; Getting started
walks through it step by step.
The operator watches NiFiClusters in every namespace, with a ClusterRole; one operator per Kubernetes cluster.
apiVersion: nifi.ksolves.com/v1alpha1
kind: NiFiCluster
metadata:
name: nifi
namespace: nifi-operator
spec:
nodeGroups:
- name: default
replicas: 3
storage: 10GiWithout spec.image the cluster runs the stock apache/nifi:2.12.0 image (see
Installation). The operator generates a login (user admin) in the Secret nifi-auth-credentials; see
NiFi login credentials. More examples are in config/samples/, and
config/samples/nifi-full-customization.yaml shows every field.
Start with the docs index:
- Getting started: install the operator, then create a first NiFi cluster, or try it all on a laptop with kind.
- CRD reference and the generated API reference.
- Troubleshooting: error messages, conditions and diagnostics.
- Questions and bugs: GitHub issues. Please read Troubleshooting first and include what it asks for.
- Security problems: see SECURITY.md, not a public issue.
- Commercial support and services: Ksolves, support@ksolves.com.
The chart is maintained by hand under charts/nifi-operator. Its generated CRD and RBAC
rules are embedded from charts/nifi-operator/files/.
NOTE: After changing API types or RBAC markers, run make manifests. It regenerates
config/ and copies the CRD and RBAC rules into the chart (make helm-sync). Then
make verify-chart fails if anything generated is stale or uncommitted.
Before sending a change, run make lint, make test, make lint-scripts, make lint-chart and
make verify-chart. make help lists all targets.
Copyright 2026 Ksolves India Limited. See LICENSE and NOTICE.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Third-party licences and notices for the Go modules compiled into the operator and CSI driver are
in THIRD_PARTY_NOTICES.txt, and in /licenses inside both images.
Apache NiFi, NiFi, Apache and the Apache feather logo are trademarks of The Apache Software Foundation. This project is not affiliated with or endorsed by The Apache Software Foundation.