Replacing a properties file within a kubernetes container
You can use the configmap with nifi.properties as initual value and copy this file into your filesystem. Use an init container in your pod you can copy it, something like the example below
initContainers:- name: copy image: busybox:1.28 command: ["/bin/sh", "-c", "cp /config/configmap/nifi.properties /config/local/"] volumeMounts: - name: configmap mountPath: /config/configmap/ - name: local mountPath: /config/local/
Then your nifi pod can use copied file