Version: 0.7.0

Node configuration

NodeConfig defines the node configuration

default_group:
# provenanceStorage allow to specify the maximum amount of data provenance information to store at a time
# https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#write-ahead-provenance-repository-properties
provenanceStorage: '10 GB'
#RunAsUser define the id of the user to run in the Nifi image
# +kubebuilder:validation:Minimum=1
runAsUser: 1000
# Set this to true if the instance is a node in a cluster.
# https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#basic-cluster-setup
isNode: true
# Docker image used by the operator to create the node associated
# https://hub.docker.com/r/apache/nifi/
# image: "apache/nifi:1.11.2"
# nodeAffinity can be specified, operator populates this value if new pvc added later to node
# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity
# nodeAffinity:
# imagePullPolicy define the pull policy for NiFi cluster docker image
imagePullPolicy: IfNotPresent
# storageConfigs specifies the node related configs
storageConfigs:
# Name of the storage config, used to name PV to reuse into sidecars for example.
- name: provenance-repository
# Path where the volume will be mount into the main nifi container inside the pod.
mountPath: '/opt/nifi/provenance_repository'
# Kubernetes PVC spec
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolumeclaim
pvcSpec:
accessModes:
- ReadWriteOnce
storageClassName: 'standard'
resources:
requests:
storage: 10Gi
- mountPath: '/opt/nifi/nifi-current/logs'
name: logs
pvcSpec:
accessModes:
- ReadWriteOnce
storageClassName: 'standard'
resources:
requests:
storage: 10Gi

NodeConfig

FieldTypeDescriptionRequiredDefault
provenanceStoragestringprovenanceStorage allow to specify the maximum amount of data provenance information to store at a time: write-ahead-provenance-repository-propertiesNo"8 GB"
runAsUserint64define the id of the user to run in the Nifi imageNo1000
fsGroupint64define the id of the group for each volumes in Nifi imageNo1000
isNodebooleanSet this to true if the instance is a node in a cluster: basic-cluster-setupNotrue
imagestringDocker image used by the operator to create the node associated. Nifi docker registryNo""
imagePullPolicyPullPolicydefine the pull policy for NiFi cluster docker image.)No""
nodeAffinitystringoperator populates this value if new pvc added later to node node-affinityNonil
storageConfigs[ ]StorageConfigspecifies the node related configs.Nonil
serviceAccountNamestringspecifies the serviceAccount used for this specific node.No"default"
resourcesRequirementsResourceRequirementsworks exactly like Container resources, the user can specify the limit and the requests through this property manage-compute-resources-container.Nonil
imagePullSecrets[ ]LocalObjectReferencespecifies the secret to use when using private registry.Nonil
nodeSelectormap[string]stringnodeSelector can be specified, which set the pod to fit on a node nodeselectorNonil
tolerations[ ]Tolerationtolerations can be specified, which set the pod's tolerations taint-and-toleration.Nonil
nodeAnnotationsmap[string]stringAdditionnal annotation to attach to the pod associated annotations.Nonil

StorageConfig

FieldTypeDescriptionRequiredDefault
namestringName of the storage config, used to name PV to reuse into sidecars for example.Yes-
mountPathstringPath where the volume will be mount into the main nifi container inside the pod.Yes-
pvcSpecPersistentVolumeClaimSpecKubernetes PVC spec. create-a-persistentvolumeclaim.Yes-
Last updated on by Alexandre Guitton