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

RepositoryNameVersion
https://charts.bitnami.com/bitnamizookeeper12.4.0

Values

KeyTypeDefaultDescription
cluster.additionalSharedEnvslist[]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.bootstrapPropertiesobject{"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.clientTypestringtlsdefines if the operator will use basic or tls authentication to query the NiFi cluster. Operator will default to tls if left unset
cluster.controllerUserIdentitystringnilControllerUserIdentity 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.disruptionBudgetobject{}see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#disruptionbudget
cluster.externalServiceslist[{"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.fullnameOverridestring""
cluster.image.repositorystring"apache/nifi"
cluster.image.tagstring""Only set this if you want to override the chart AppVersion
cluster.initContainerImage.repositorystring"bash"
cluster.initContainerImage.tagstring"5.2.2"
cluster.initContainerslist[]list of init containers to run prior to the deployment
cluster.ldapConfigurationobject{}see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#ldapconfiguration
cluster.listenersConfigobject{"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.internalListenerslist[{"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.sslSecretsstringnilProvides 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.configPathstring"config/logback.xml"
cluster.logbackConfig.replaceConfigMapobject{}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.replaceSecretConfigobject{}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.managedAdminUserslist[]see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#managedusers
cluster.managedReaderUserslist[]see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#managedusers
cluster.managerstringzookeeperthe type of cluster manager: zookeeper or kubernetes. Operator will put zookeeper by default
cluster.managerServiceAccountobject{"annotations":{},"labels":{},"name":null}the kubernetes manager serviceAccount details
cluster.managerServiceAccount.annotationsobject{}Annotations to apply to the serviceAccount
cluster.managerServiceAccount.labelsobject{}Labels to apply to the serviceAccount
cluster.maximumTimerDrivenThreadCountint10MaximumTimerDrivenThreadCount defines the maximum number of threads for timer driven processors available to the system.
cluster.nameOverridestring"nifi-cluster"the full name of the cluster. This is used to set a portion of the name of various nifikop resources
cluster.nifiControllerTemplatestringnil
cluster.nifiPropertiesobject{"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.needClientAuthboolfalseNifi security client auth
cluster.nifiProperties.overrideConfigMapobject{}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.overrideSecretConfigobject{}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.webProxyHostslist[]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.webProxyNodePortsobject{"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.nodeConfigGroupsobject{}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.nodeUserIdentityTemplatestring"node-%d-"the template to use to create nodes. see https://konpyutaika.github.io/nifikop/docs/5_references/1_nifi_cluster#nificlusterspec
cluster.nodeslist[{"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.oneNifiNodePerNodeboolfalsewhether or not to only deploy one nifi pod per node in this cluster
cluster.pod.annotationsobject{}Annotations to apply to every pod
cluster.pod.hostAliaseslist[]host aliases to assign to each pod. See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#hostalias-v1-core
cluster.pod.labelsobject{}Labels to apply to every pod
cluster.pod.livenessProbeobjectnilThe pod liveness probe override: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command
cluster.pod.readinessProbeobjectnilThe pod readiness probe override: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes
cluster.propagateLabelsbooltrue
cluster.retryDurationMinutesint10The number of minutes the operator should wait for the cluster to be successfully deployed before retrying
cluster.service.annotationsobject{}Annotations to apply to each nifi service
cluster.service.headlessEnabledbooltrueWhether or not to create a headless service
cluster.service.labelsobject{}Labels to apply to each nifi service
cluster.sidecarConfigslist[]list of additional sidecar containers to run alongside the nifi pods. See: https://pkg.go.dev/k8s.io/api/core/v1#Container
cluster.singleUserConfigurationobject{"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.topologySpreadConstraintslist[]specifies any TopologySpreadConstraint objects to be applied to all nodes. See https://pkg.go.dev/k8s.io/api/core/v1#TopologySpreadConstraint
cluster.typestringinternaltype of the cluster: internal or external. Operator will put internal by default
cluster.zkAddressstring"nifi-cluster-zookeeper:2181"the hostname and port of the zookeeper service
cluster.zkPathstring"/cluster"the path in zookeeper to store this cluster's state
cluster.zookeeperPropertiesobject{"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.
dataflowslist[{"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].bucketIdstring""Bucket id can be found in the bucket.yml created when version controlling process groups
dataflows[0].flowIdstring""Flow id can be found in the bucket.yml created when version controlling process groups
dataflows[0].flowPosition.posXint0x coordinate of flow on canvas
dataflows[0].flowPosition.posYint0y coordinate of flow on canvas
dataflows[0].flowVersionint1Version of the flow to take from registry
dataflows[0].namestring"My Special Dataflow"Name of the flow
dataflows[0].parameterContextRefobject{"name":"default","namespace":"nifi"}Reference to the ParameterContext object which will be added to this flow
dataflows[0].registryClientRefobject{"name":"default","namespace":"nifi"}reference to the nifi registry client to connect and get versioned flow
dataflows[0].syncModestring"always"This is one of {never, always, once}
extraManifestslist[]A list of extra Kubernetes manifest with Helm template support, to apply
ingress.annotationsobject{}
ingress.classNamestring"nginx"
ingress.enabledboolfalse
ingress.hostslist[]
ingress.tlslist[]
logging.enabledboolfalseWhether or not log aggregation via the banzai cloud logging operator is enabled.
logging.flowobject{"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.filterslist[{"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.outputsobject{"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
monitoringobject`{"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnifi-cluster is pinned at v1.14.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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