Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-30329

flink-kubernetes-operator helm chart does not work with dynamic config because of use of volumeMount subPath

    XMLWordPrintableJSON

Details

    Description

      flink-kubernetes-operator supports dynamic configuration when kubernetes.operator.dynamic.config.enabled is enabled.  The provided helm charts make use of a k8s ConfigMap to provide the flink-conf.yaml file.  These helm charts make use of the subPath VolumeMount feature.  When mounted volumes use subPath, the volume that uses them is not updated automatically.  So, even you do update the ConfigMap in k8s, the flink-conf.yaml file will never see those updates.

      Since all 'subPaths' of the volume are being mounted in both the operator and webhook containers at the same paths, I believe an easy fix would be to avoid declaring individual volumeMounts for each file, and just mount the whole ConfigMap as a volume at /opt/flink/conf.

      Attachments

        Activity

          People

            ottomata Andrew Otto
            ottomata Andrew Otto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: