Overriding NiFi settings using ConfigMaps and Secrets
Learn about overriding default NiFi settings using ConfigMaps and Secrets.
The ConfigMap or Secret values are available to inject into the environment for the following files:
-
authorizers.xml
-
bootstrap.conf
-
logback.xml
-
login-identity-providers.xml
-
nifi.properties
-
state-management.xml
Each of these config overrides must be in an individual ConfigMap with the key being the filename to be replaced. Using this ConfigMap or Secret reference method entirely overrides the defaults provided by the CFM Operator, which may impact cluster operation.
NiFiSpec
spec:
configOverride:
authorizersObjectReference:
kind: "ConfigMap"
name: "custom-authorizers"
ConfigMapSpec
data:
authorizers.xml: |
<authorizers>
<authorizer>
<identifier>single-user-authorizer</identifier>
<class>org.apache.nifi.authorization.single.user.SingleUserAuthorizer</class>
</authorizer>
</authorizers>