From a14efad36688c7de2c390aa4bd022637192f5240 Mon Sep 17 00:00:00 2001 From: nathluu Date: Fri, 24 Nov 2023 17:25:23 +0700 Subject: [PATCH] Add zkClientEnsembleTracker configuration (#319) --- Chart.yaml | 4 ++-- README.md | 4 ++-- configs/nifi.properties | 1 + doc/INSTALLATION.md | 2 +- templates/statefulset.yaml | 1 + tests/06-alpha.flow.xml | 6 +++--- values.yaml | 3 ++- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 22cf8abc..85ec95d9 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,8 +1,8 @@ --- apiVersion: v2 name: nifi -version: 1.1.4 -appVersion: 1.16.3 +version: 1.1.5 +appVersion: 1.23.2 description: Apache NiFi is a software project from the Apache Software Foundation designed to automate the flow of data between software systems. keywords: - nifi diff --git a/README.md b/README.md index fb6cecb5..97b58ef5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Introduction -This [Helm](https://helm.sh/) chart installs [Apache NiFi](https://nifi.apache.org/) 1.16.3 in a [Kubernetes](https://kubernetes.io/) cluster. +This [Helm](https://helm.sh/) chart installs [Apache NiFi](https://nifi.apache.org/) 1.23.2 in a [Kubernetes](https://kubernetes.io/) cluster. ## Prerequisites @@ -96,7 +96,7 @@ The following table lists the configurable parameters of the nifi chart and the | `replicaCount` | Number of nifi nodes | `1` | | **Image** | | `image.repository` | nifi Image name | `apache/nifi` | -| `image.tag` | nifi Image tag | `1.16.3` | +| `image.tag` | nifi Image tag | `1.23.2` | | `image.pullPolicy` | nifi Image pull policy | `IfNotPresent` | | `image.pullSecret` | nifi Image pull secret | `nil` | | **SecurityContext** | diff --git a/configs/nifi.properties b/configs/nifi.properties index 06d74aec..d98a5c16 100644 --- a/configs/nifi.properties +++ b/configs/nifi.properties @@ -238,6 +238,7 @@ nifi.cluster.flow.election.max.wait.time=1 mins nifi.cluster.flow.election.max.candidates= # zookeeper properties, used for cluster management # +nifi.zookeeper.client.ensembleTracker={{.Values.properties.zkClientEnsembleTraker}} nifi.zookeeper.connect.string= nifi.zookeeper.connect.timeout=3 secs nifi.zookeeper.session.timeout=3 secs diff --git a/doc/INSTALLATION.md b/doc/INSTALLATION.md index 821ba2d4..8f230970 100644 --- a/doc/INSTALLATION.md +++ b/doc/INSTALLATION.md @@ -16,7 +16,7 @@ helm dep up ``` 2. **Set a sensitiveKey** -In 1.16.3 version, Nifi needs a sensitiveKey to encrypt sensitive information. This key can be setted in the `values.yaml` file: +In 1.23.2 version, Nifi needs a sensitiveKey to encrypt sensitive information. This key can be setted in the `values.yaml` file: ```` properties: diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 147f5e10..f0db1cd1 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -191,6 +191,7 @@ spec: fi {{ end }} + prop_replace nifi.ui.banner.text $(hostname -s) prop_replace nifi.remote.input.host ${FQDN} prop_replace nifi.cluster.node.address ${FQDN} prop_replace nifi.zookeeper.connect.string ${NIFI_ZOOKEEPER_CONNECT_STRING} diff --git a/tests/06-alpha.flow.xml b/tests/06-alpha.flow.xml index f8b781f8..e3848b5c 100644 --- a/tests/06-alpha.flow.xml +++ b/tests/06-alpha.flow.xml @@ -24,7 +24,7 @@ org.apache.nifi nifi-standard-nar - 1.16.3 + 1.23.2 1 1 sec @@ -117,7 +117,7 @@ org.apache.nifi nifi-ssl-context-service-nar - 1.16.3 + 1.23.2 true @@ -162,7 +162,7 @@ org.apache.nifi nifi-site-to-site-reporting-nar - 1.16.3 + 1.23.2 5 sec RUNNING diff --git a/values.yaml b/values.yaml index a22b8ea4..e8ee8e42 100644 --- a/values.yaml +++ b/values.yaml @@ -7,7 +7,7 @@ replicaCount: 1 ## image: repository: apache/nifi - tag: "1.16.3" + tag: "1.23.2" pullPolicy: "IfNotPresent" ## Optionally specify an imagePullSecret. @@ -94,6 +94,7 @@ properties: httpsPort: 8443 webProxyHost: # : (If Nifi service is NodePort or LoadBalancer) clusterPort: 6007 + zkClientEnsembleTraker: false # https://issues.apache.org/jira/browse/NIFI-10481 provenanceStorage: "8 GB" provenanceMaxStorageTime: "10 days" siteToSite: