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

Add an option to add a prefix on Kubernetes resources

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 2.0.0-M2
    • 2.0.0-M2
    • Core Framework
    • None

    Description

      In case of using Kubernetes as a Cluster Leader Election and State Mangement, NiFi will create two types of resources: ConfigMaps and Leases.

      2 Leases for the Cluster Leader Election and multiple ConfigMaps depending the number of components which their state to be stored.

      Their names are normalized:

      • Leases: cluster-coordinator and primary-node.
      • ConfigMap: nifi-component-%s with %s the component identifier.

      But currently, if someone wants to deploy more than one cluster in one namespace, conflicts will arise. Because the resources will share their names. It has been done this way to prevent security concerns where a cluster will manipulate resources of another cluster.

      But as discussed on Slack, these concerns can't prevented with 100% certainty.

      So users should be able to configure a prefix to add to these resources to prevent conflict and assume the security concerns.

      It can be done by replicating the logic done with ZooKeeper by adding a property in nifi.properties and a new field in the state_management.xml file.

      Attachments

        Issue Links

          Activity

            People

              juldrixx Julien G.
              juldrixx Julien G.
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 10m
                  4h 10m