Giter VIP home page Giter VIP logo

Comments (14)

juldrixx avatar juldrixx commented on August 21, 2024

You can see my manifest here - Orange-OpenSource/nifikop#139 , as I said I only added nifi.sensitive.props.key

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

Oh, yeah, I'm not using cert-manager

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

I was able to get it working. The nifi logs inform you what needs to be added to get it to work.

Can you clarify specifically what isn't working?

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

nifi.sensitive.props.key

would you mind shring the manifest for the cluster with your settings? i suspect mi issues comes from using the certificate manager... thanks

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

nifi.sensitive.props.key

would you mind shring the manifest for the cluster with your settings? i suspect mi issues comes from using the certificate manager... thanks

I did just recently discover #153

But otherwise, it should work just fine. I've cert-manager enabled (deployed version v1.5.4) in my setup without issues.

Are there errors in the nifikop logs or the nifi-app logs?

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

We are working on the integration with NiFi 1.14 and NiFi 1.15, it seems after some tests that everything works perfectly with these new versions (if you add property nifi.sensitive.props.key in the nifi.properties) in case you are already on a secured cluster.

For unsecure clusters, I don't touch all the things that it involves, but if there isn't a detailed clear process somewhere, I assume that the operator won't support the upgrade.

Thanks @erdrix - I will try ASAP and report how it goes

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

@erdrix my nifi setup include cert manger version 1.2 , after adding the key "nifi.sensitive.props.key" the pods keep restarting in a loop and i cant debug it.
do you test it with cert manger enabled ? any ideas ? thanks

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

I got it working too, the only change I had to make was to explicitly provide nifi.sensitive.props.key in overrideConfigs. It is working with 1.15.0 too

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

nifi.sensitive.props.key

would you mind shring the manifest for the cluster with your settings? i suspect mi issues comes from using the certificate manager... thanks

I did just recently discover #153

But otherwise, it should work just fine. I've cert-manager enabled (deployed version v1.5.4) in my setup without issues.

Are there errors in the nifikop logs or the nifi-app logs?

It is hard to debug since Nifikop fails to start the pods and kills them before i can debug... and all i did was change the version on my working setup

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

We are working on the integration with NiFi 1.14 and NiFi 1.15, it seems after some tests that everything works perfectly with these new versions (if you add property nifi.sensitive.props.key in the nifi.properties) in case you are already on a secured cluster.

For unsecure clusters, I don't touch all the things that it involves, but if there isn't a detailed clear process somewhere, I assume that the operator won't support the upgrade.

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

For the nifi.sensitive.props.key we are balanced between letting people configure it using the nifiProperties. overrideSecretConfig or explicitly set a secretconfigreference for this nifi property.

We have not tested the version 1.14 and 1.15 so we don't explicitly support these two version (We have some rework to replace the unsecured mode which has changed and require new configurations : username and password).

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

I got it working too, the only change I had to make was to explicitly provide nifi.sensitive.props.key in overrideConfigs. It is working with 1.15.0 too

I just tested with the simplecluster.yaml just changing the versions and it doesn't work for me. Thanks for all your support :)

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

deleting the certs related to nifi forced the cert manger to create new certs and now its working

from nifikop.

juldrixx avatar juldrixx commented on August 21, 2024

We are working on the integration with NiFi 1.14 and NiFi 1.15, it seems after some tests that everything works perfectly with these new versions (if you add property nifi.sensitive.props.key in the nifi.properties) in case you are already on a secured cluster.
For unsecure clusters, I don't touch all the things that it involves, but if there isn't a detailed clear process somewhere, I assume that the operator won't support the upgrade.

Thanks @erdrix - I will try ASAP and report how it goes

After some additional test we faced to some issues during the upgrade, the following actions should works to migrate from 1.12.X or 1.13.X to 1.14+ :

  1. Edit your NiFiCluster resource by adding an init container :
...
spec
  ...
  initContainers:
  ...
  - command:
    - sh
    - -c
    - '/opt/nifi/nifi-current/bin/nifi.sh set-sensitive-properties-key <your encryption password>'
    image: apache/nifi:1.14.0
    imagePullPolicy: IfNotPresent
    name: upgrade-nifi
    volumeMounts:
    - mountPath: /opt/nifi/data
      name: data
    - mountPath: /opt/nifi/nifi-current/conf
      name: conf
  ...
  1. Add your sensitive key in your nifi.properties (using one of the three possibility, it is highly recommended to use a secret) : nifi.sensitive.props.key=<your encryption password> .

  2. Force the deletion of all your NiFi node's pods, in a way that they will start in the same time.

  3. Once all the pods of your cluster are up, edit once again your NiFiCluster resource, by removing the added initContainer and upgrading your NiFi version :

spec
  ...
  clusterImage: apache/nifi:1.15.1
  ...

And your cluster should be running :)

from nifikop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.