We deployed a 3-node cluster of nifi containers into a K8S and ran into many of 
these same issues.   We ended up creating our own Docker image based on the 
upstream apache/nifi image, but with our own entrypoint script that sets the 
nifi.properties that we wished to customize before launching the main nifi 
start script.

We also set the various repository directories to be on persistent storage, but 
leave the "conf" directory as-is and use a ConfigMap to hold the logback.xml 
definition, but not the nifi.properties since that is setup by the entrypoint 
script in the container.

-Wyllys Ingersoll


________________________________
From: Sushil Kumar <[email protected]>
Sent: Monday, November 16, 2020 2:54 PM
To: [email protected] <[email protected]>
Subject: Re: NiFi on Kubernetes - 2

Hello muhyid72

Thanks for checking in the chart.
Yes it leverages usage of helm charts for kubernetes.

Regarding the issue you are facing, what you need to understand is that the 
conf directory on the container would get replaced by volume if you mount, so 
volume should have pre-existing files. If you are using configmap mounted as 
file then this needs to be a source file from which you would need to add 
functionality to get the target conf files.
I am also interested in understanding the requirement of usage of mount-point 
for conf directory because it seems that you want to use container's existing 
scripts so in that case what do you want to achieve by using the volume mount 
as conf directory.

I hope you can find the solution.

Thanks
Sushil Kumar


On Mon, Nov 16, 2020 at 11:01 AM muhyid72 
<[email protected]<mailto:[email protected]>> wrote:
Hi Sushil,
Thanks for your interest and knowledge sharing. Sorry for delayed response.
I reviewed your chart. As far as I understand, you are using Helm for nifi
deployment and you used Helm capabilities. I have not used Helm till now.
I would like to use original apache nifi image with minimum changes due to
future updates and easy manageability but I will look at deeply to Helm for
alternative way.

P.S: As I said to Chris, I couldn't get my aim with using configmap due to
read-only behavior

Thanks for your support



--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/

Reply via email to