How to specifc exec on volumeMount

426 Views Asked by At

We have OpenShift 3.9 running in our Cluster. I currently am trying out the Pipeline capabilities of OpenShift. It turns out the default recipies for Jenkins are not working. The problem is that the volumeMount specified in the dc leads to a noexec mount in the Container. When the Jenkins git plugin is then trying to execute its ssh wrapper in /var/lib/jenkins it of course fails.

The config they use in the dc is:

  volumes:
    - emptyDir: {}
      name: jenkins-data

and then mount it via:

      volumeMounts:
        - mountPath: /var/lib/jenkins
          name: jenkins-data

I could not find any option to configure which mount options are to be used in the container. Is there any way to work around that?

0

There are 0 best solutions below