nifi-cluster
by RADAR-Base
Helm chartv1.14.1App 1.28.0Verified publisher
A Helm chart for deploying NiFi clusters in Kubernetes
About this chart
nifi-cluster
A Helm chart for deploying NiFi clusters in Kubernetes
Homepage: https://github.com/konpyutaika/nifikop
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | zookeeper | 12.4.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| cluster.additionalSharedEnvs | list | [] | list of additional environment variables to attach to all init containers and the nifi container https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/2_read_only_config#readonlyconfig |
| cluster.bootstrapProperties | object | {"nifiJvmMemory":"512m","overrideConfigs":"java.arg.4=-Djava.net.preferIPv4Stack=true\njava.arg.log4shell=-Dlog4j2.formatMsgNoLookups=true\n"} | You can override individual properties in conf/bootstrap.conf https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#bootstrap_properties |
| cluster.clientType | string | tls | defines if the operator will use basic or tls authentication to query the NiFi cluster. Operator will default to tls if left unset |
| cluster.controllerUserIdentity | string | nil | ControllerUserIdentity specifies what to call the static admin user's identity. Warning: once defined don't change this value either the operator will no longer be able to manage the cluster |
| cluster.disruptionBudget | object | {} | see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#disruptionbudget |
| cluster.externalServices | list | [{"metadata":{"annotations":{},"labels":{}},"name":"nifi-cluster-ip","spec":{"portConfigs":[{"internalListenerName":"http","port":8080}],"type":"ClusterIP"}}] | Additional k8s services to create and target internal listener ports. Ingress will use these to route traffic to the cluster |
| cluster.fullnameOverride | string | "" | |
| cluster.image.repository | string | "apache/nifi" | |
| cluster.image.tag | string | "" | Only set this if you want to override the chart AppVersion |
| cluster.initContainerImage.repository | string | "bash" | |
| cluster.initContainerImage.tag | string | "5.2.2" | |
| cluster.initContainers | list | [] | list of init containers to run prior to the deployment |
| cluster.ldapConfiguration | object | {} | see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#ldapconfiguration |
| cluster.listenersConfig | object | {"internalListeners":[{"containerPort":8080,"name":"http","type":"http"},{"containerPort":6007,"name":"cluster","type":"cluster"},{"containerPort":10000,"name":"s2s","type":"s2s"},{"containerPort":9090,"name":"prometheus","type":"prometheus"}],"sslSecrets":null} | https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/6_listeners_config |
| cluster.listenersConfig.internalListeners | list | [{"containerPort":8080,"name":"http","type":"http"},{"containerPort":6007,"name":"cluster","type":"cluster"},{"containerPort":10000,"name":"s2s","type":"s2s"},{"containerPort":9090,"name":"prometheus","type":"prometheus"}] | List of internal ports exposed for the nifi container. The type of port has specific meaning, see: https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/6_listeners_config#internallistener |
| cluster.listenersConfig.sslSecrets | string | nil | Provides the SSL configuration for the cluster, can be fully user provided, user provided CA or auto generated with cert-manager. See: https://konpyutaika.github.io/nifikop/docs/3_manage_nifi/1_manage_clusters/1_deploy_cluster/4_ssl_configuration |
| cluster.logbackConfig.configPath | string | "config/logback.xml" | |
| cluster.logbackConfig.replaceConfigMap | object | {} | A ConfigMap ref to override the default logback configuration see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/2_read_only_config#logbackconfig |
| cluster.logbackConfig.replaceSecretConfig | object | {} | A Secret ref to override the default logback configuration see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/2_read_only_config#logbackconfig |
| cluster.managedAdminUsers | list | [] | see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#managedusers |
| cluster.managedReaderUsers | list | [] | see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#managedusers |
| cluster.manager | string | zookeeper | the type of cluster manager: zookeeper or kubernetes. Operator will put zookeeper by default |
| cluster.managerServiceAccount | object | {"annotations":{},"labels":{},"name":null} | the kubernetes manager serviceAccount details |
| cluster.managerServiceAccount.annotations | object | {} | Annotations to apply to the serviceAccount |
| cluster.managerServiceAccount.labels | object | {} | Labels to apply to the serviceAccount |
| cluster.maximumTimerDrivenThreadCount | int | 10 | MaximumTimerDrivenThreadCount defines the maximum number of threads for timer driven processors available to the system. |
| cluster.nameOverride | string | "nifi-cluster" | the full name of the cluster. This is used to set a portion of the name of various nifikop resources |
| cluster.nifiControllerTemplate | string | nil | |
| cluster.nifiProperties | object | {"needClientAuth":false,"overrideConfigMap":{},"overrideConfigs":"nifi.web.proxy.context.path=/nifi-cluster\n","overrideSecretConfig":{},"webProxyHosts":[],"webProxyNodePorts":{"enabled":false,"hosts":[]}} | You can override the individual properties via the overrideConfigs attribute. These will be provided to all pods via secrets. https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#system_properties |
| cluster.nifiProperties.needClientAuth | bool | false | Nifi security client auth |
| cluster.nifiProperties.overrideConfigMap | object | {} | A ConfigMap ref to override the default nifi properties see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/2_read_only_config#nifiproperties |
| cluster.nifiProperties.overrideSecretConfig | object | {} | A Secret ref to override the default nifi properties see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/2_read_only_config#nifiproperties |
| cluster.nifiProperties.webProxyHosts | list | [] | List of allowed HTTP Host header values to consider when NiFi is running securely and will be receiving requests to a different host[:port] than it is bound to. Operator will generate comma separated string from list https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#web-properties |
| cluster.nifiProperties.webProxyNodePorts | object | {"enabled":false,"hosts":[]} | In case cluster.externalServices contains a service of type NodePort and NiFi UI/API needs to be accessed over it, this option will add host:nodePort to the webProxyHosts list inside NiFiCluster. Note: When adding webProxyHosts as host:port, NiFi will also create entry for host as valid host header. |
| cluster.nodeConfigGroups | object | {} | Defines configurations for nodes which can be used in list of nodes in cluster. See: https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster/3_node_config |
| cluster.nodeUserIdentityTemplate | string | "node-%d-" | the template to use to create nodes. see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#nificlusterspec |
| cluster.nodes | list | [{"id":1,"nodeConfigGroup":"default-group"}] | Defines the list of nodes in the cluster with their id's and config to apply. See https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#nificlusterspec |
| cluster.oneNifiNodePerNode | bool | false | whether or not to only deploy one nifi pod per node in this cluster |
| cluster.pod.annotations | object | {} | Annotations to apply to every pod |
| cluster.pod.hostAliases | list | [] | host aliases to assign to each pod. See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#hostalias-v1-core |
| cluster.pod.labels | object | {} | Labels to apply to every pod |
| cluster.pod.livenessProbe | object | nil | The pod liveness probe override: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command |
| cluster.pod.readinessProbe | object | nil | The pod readiness probe override: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes |
| cluster.propagateLabels | bool | true | |
| cluster.retryDurationMinutes | int | 10 | The number of minutes the operator should wait for the cluster to be successfully deployed before retrying |
| cluster.service.annotations | object | {} | Annotations to apply to each nifi service |
| cluster.service.headlessEnabled | bool | true | Whether or not to create a headless service |
| cluster.service.labels | object | {} | Labels to apply to each nifi service |
| cluster.sidecarConfigs | list | [] | list of additional sidecar containers to run alongside the nifi pods. See: https://pkg.go.dev/k8s.io/api/core/v1#Container |
| cluster.singleUserConfiguration | object | {"authorizerEnabled":false,"enabled":false,"secretKeys":{"password":"password","username":"username"},"secretRef":{"name":"single-user-credentials","namespace":"nifi"}} | see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#singleuserconfiguration |
| cluster.topologySpreadConstraints | list | [] | specifies any TopologySpreadConstraint objects to be applied to all nodes. See https://pkg.go.dev/k8s.io/api/core/v1#TopologySpreadConstraint |
| cluster.type | string | internal | type of the cluster: internal or external. Operator will put internal by default |
| cluster.zkAddress | string | "nifi-cluster-zookeeper:2181" | the hostname and port of the zookeeper service |
| cluster.zkPath | string | "/cluster" | the path in zookeeper to store this cluster's state |
| cluster.zookeeperProperties | object | {"overrideConfigs":"initLimit=15\nautopurge.purgeInterval=24\nsyncLimit=5\ntickTime=2000\ndataDir=./state/zookeeper\nautopurge.snapRetainCount=30\n"} | This is only for embedded zookeeper configuration. This is ignored if zookeeper.enabled is true. |
| dataflows | list | [{"bucketId":"","enabled":false,"flowId":"","flowPosition":{"posX":0,"posY":0},"flowVersion":1,"name":"My Special Dataflow","parameterContextRef":{"name":"default","namespace":"nifi"},"registryClientRef":{"name":"default","namespace":"nifi"},"skipInvalidComponent":true,"skipInvalidControllerService":true,"syncMode":"always","updateStrategy":"drain"}] | Versioned dataflow configurations. This is used to configure versioned dataflows to be deployed to this nifi cluster. Any number may be configured. Note that a registryClient and a parameterContext must be enabled & present in order for a dataflow to be deployed to a cluster. See https://konpyutaika.github.io/nifikop/docs/5_references/5_nifi_dataflow |
| dataflows[0].bucketId | string | "" | Bucket id can be found in the bucket.yml created when version controlling process groups |
| dataflows[0].flowId | string | "" | Flow id can be found in the bucket.yml created when version controlling process groups |
| dataflows[0].flowPosition.posX | int | 0 | x coordinate of flow on canvas |
| dataflows[0].flowPosition.posY | int | 0 | y coordinate of flow on canvas |
| dataflows[0].flowVersion | int | 1 | Version of the flow to take from registry |
| dataflows[0].name | string | "My Special Dataflow" | Name of the flow |
| dataflows[0].parameterContextRef | object | {"name":"default","namespace":"nifi"} | Reference to the ParameterContext object which will be added to this flow |
| dataflows[0].registryClientRef | object | {"name":"default","namespace":"nifi"} | reference to the nifi registry client to connect and get versioned flow |
| dataflows[0].syncMode | string | "always" | This is one of {never, always, once} |
| extraManifests | list | [] | A list of extra Kubernetes manifest with Helm template support, to apply |
| ingress.annotations | object | {} | |
| ingress.className | string | "nginx" | |
| ingress.enabled | bool | false | |
| ingress.hosts | list | [] | |
| ingress.tls | list | [] | |
| logging.enabled | bool | false | Whether or not log aggregation via the banzai cloud logging operator is enabled. |
| logging.flow | object | {"filters":[{"parser":{"parse":{"expression":"/^(?<time>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}) (?<level>[^\\s]+) \\[(?<thread>.*)\\] (?<message>.*)$/im","keep_time_key":true,"time_format":"%iso8601","time_key":"time","time_type":"string","type":"regexp"}}}],"match":[{"select":{"labels":{"app":"nifi"}}}],"name":"nifi-cluster-flow"} | https://banzaicloud.com/docs/one-eye/logging-operator/configuration/flow/ |
| logging.flow.filters | list | [{"parser":{"parse":{"expression":"/^(?<time>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}) (?<level>[^\\s]+) \\[(?<thread>.*)\\] (?<message>.*)$/im","keep_time_key":true,"time_format":"%iso8601","time_key":"time","time_type":"string","type":"regexp"}}}] | The filters and match configs should be configured just like in the CRDs (linked above) |
| logging.outputs | object | {"globalOutputRefs":["loki-cluster-output"]} | Only global outputs that have been created separately to this helm chart supported for now may consider changing this to a Flow per cluster in future |
| monitoring | object | `{"enabled":false,"internalListenersType":"pro |
Deploy nifi-cluster with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nifi-cluster on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnifi-cluster is pinned at v1.14.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply