Search code examples
jenkins-x

Update build podTemplate for Jenkins X


If I modify the pod template in UI as suggested in adding-your-own-pod-templates my changes get lost on the node restart (we are running on GKE with preemptive nodes)

Is there another reccomendation how to do that? I tried to update .jx/cloud-environments/env-jx-infra/myvalues.yaml and run jx upgrade platform but that does not seem to work yet. Any chance it will work from jx install?

I am kind of hesistating to re-create my environment. As a last resort I will modify the jenkins-x-pod-templates configmap, which will likely help till the next jx upgrade


Solution

  • we recently fixed jx upgrade platform so that it can work properly with myvalues.yaml files as described here.

    there's some docs on how to do this with helm here: https://jenkins-x.io/getting-started/create-custom-builder/