Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2899

Cannot declare an in-memory emptyDir volume through myvalues.yaml

    XMLWordPrintable

    Details

    • Type: Problem
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X

      Description

      As it seems to solve NXP-27559, we currently need to declare /tmp as a Kubernetes in-memory (mount a tmpfs) emptyDir volume.

      We still need to investigate what's the issue with the ChronicleQueue tests when /tmp is not in a volume and why using such an in-memory emptyDir volume fixes it. It might not be the final solution but for now we need to be able to define such a volume in a Jenkins X PodTemplate.

      We've tried the following in myvalues.yaml:

      jenkins:
        Agent:
          PodTemplates:
            Maven-Java11-Nuxeo:
              Name: maven-java11-nuxeo
              Label: jenkins-maven-java11-nuxeo
              DevPodPorts: 5005, 8080
              volumes:
                - type: EmptyDir
                  mountPath: /tmp
      

      It does make appear a volume in the Jenkins X configuration UI, see attached screenshot, but:

      • There doesn't seem to be a way to check the "In Memory" checkbox.
      • Looking at the generated Kubernetes pod template config map, there is something missing, comparing the workspace volume (defined by default) and the tmp one:
              volumes:
              - name: workspace-volume
                emptyDir: {}
              - name: volume-3
              ...
              containers:
                volumeMounts:
                  - name: workspace-volume
                    mountPath: /home/jenkins
        
                  ...
                  - name: volume-3
                    mountPath: /tmp
        

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: