Kubernetes Plugin share workspace

37 views
Skip to first unread message

Matthew Ceroni

unread,
Feb 26, 2018, 5:02:42 PM2/26/18
to Jenkins Users
Is it possible, much like with the docker agent and reuseNode option, to share a work space between multiple kubernetes pods?

My use case that I am trying to solve it to utilize the lock/milestone functionality to promote artifacts through environments (test, staging, prod). The problem is if I use a global agent at the top of my pipeline, that POD will stick around until the end user finally proceeds or aborts the promotion. I don't really want that as it uses up resources. If I use a stage specific agent then I have the problem that the workspace gets re-initialized each time.

Thanks in advance. 

Carlos Sanchez

unread,
Feb 27, 2018, 5:36:53 AM2/27/18
to Jenkins Users
You should be able to mount the workspace as an external volume using persistentVolumeClaim in your podTemplate

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d6780c76-cc0c-4f60-90c5-448be26b7d61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages