Updating NiFi

Updating (or downgrading for that matter) the deployed version of NiFi is as simple as changing the version stated in the CRD. Continuing the example above, to change the deployed version from 1.23.2 to 1.21.0 you’d simply deploy the following CRD.

apiVersion: nifi.stackable.tech/v1alpha1
kind: NifiCluster
metadata:
  name: simple-nifi
spec:
  image:
    productVersion: 1.21.0 (1)
  clusterConfig:
    authentication:
      - authenticationClass: simple-nifi-admin-user
    listenerClass: external-unstable
    sensitiveProperties:
      keySecret: nifi-sensitive-property-key
    zookeeperConfigMapName: simple-nifi-znode
  nodes:
    roleGroups:
      default:
        replicas: 3
1 Change the NiFi version here
Due to a limitation in NiFi itself it is not possible to up- or downgrade a NiFi cluster in a rolling fashion. So any change to the NiFi version you make in this CRD will result in a full cluster restart with a short downtime. This does not affect the stackable image version, this can be changed in a rolling fashion, as long as the underlying NiFi version remains unchanged.