Using the docker image to run as pod on kubernetes platform
I tried to use the docker image as pod on Kubernetes cluster. the problem was to mount the folder, I even change the environment path's for reports and test but no success.
Our Jenkins is using pods as Jenkins-slave and I didn't have any success. the goal was to not use VM as Jenkins slave and then run as docker run, We wanted to use the docker image as a pod that will be Jenkins slave.
Does anyone succeeded with that?
I have a few questions in order to help you:
- Is that folder always the same for all pods?
- Have you tried using a PersistentVolume + PersistentVolumeClaim and mount it onto your pod?
- Could you share your Kubernetes configuration files please?
answers: Yes, the folder is always the same for all pods I configure it directly on the jenkins-slave yaml file. Yes I tried using a PersistentVolume + PersistentVolumeClaim and mount it onto your pod - no success
You answered just now on my question that published at 11.11.24 )months past) I need to re-created all test environments.