Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5857

Non deterministic behaviour in Kubernetes by trying to inject custom properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Critical
    • Resolution: Unresolved
    • 1.8.0
    • None
    • Docker
    • None
    • Kubernetes, Docker

    Description

      I want to override some config files in Nifi via Kubernetes. In order to do so I am trying to replace the files after the start. It appears that the docker file is started through a start.sh script which calls several other scripts. This implementation Leeds to a non deterministic state, since the replacement time can differ from the start.sh runtime. Furthermore, after restarting a pod, the replacing command will be run each time again what also leeds to a fuzzy state. 

      My proposal would be instead of injecting and running some sh files who will set some variables the customized config files should just be copy replaced in the building step. The run command can then be replaced through the ENTRYPOINT ["bin/nifi.sh", "run"] Command. 

      In order to get the logging output to the console, a logback-test.xml file should be created and configured so that all the meaningful information will be piped to stdout. 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dirkjkb dirkjkb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: