konpyutaika / nifikop

The NiFiKop NiFi Kubernetes operator makes it easy to run Apache NiFi on Kubernetes. Apache NiFI is a free, open-source solution that support powerful and scalable directed graphs of data routing, transformation, and system mediation logic.
https://konpyutaika.github.io/nifikop/
Apache License 2.0
126 stars 44 forks source link

Make liveness and readiness checks configurable #219

Closed mh013370 closed 1 year ago

mh013370 commented 1 year ago

Is your feature request related to a problem?

Yes. We're running into the issue described in this thread occasionally and unpredictably: https://www.mail-archive.com/users@nifi.apache.org/msg14909.html

When this happens, the only fix is to restart the NiFi pods. Restarting Zookeeper has no effect. This can be detected by querying the NiFi REST API, so we can work around this by tweaking the liveness check. However, it's not currently configurable, so i'm requesting that it be made configurable while keeping the current configuration as the default.

Describe the solution you'd like to see

Make the readiness and liveness checks configurable and expose the configuration in NifiCluster.Spec.PodPolicy.

Describe alternatives you've considered

Writing an external CronJob, but that's just a bandaid for an appropriate solution until the problem is resolved in NiFi itself.

Additional context

No response