Issue
After upgrading CloudBees CI on modern cloud platforms to version 2.426.2.2
or 2.426.3.3
, the Pod templates
configuration section is missing from the kubernetes shared cloud items located on the operations center. This means it is not possible to create, update, or delete the shared pod templates through the UI.
Environment
-
CloudBees CI on modern cloud platforms - operations center -
2.426.2.2
or2.426.3.3
Resolution
Upgrade to CloudBees CI version 2.440.1.3 or later, and the configuration will be available under kubernetes-shared-cloud
→ Pod Templates
.
Workaround
The recommended workaround would be to configure pod templates using Configuration as Code (CasC) at a controller level. If you are not already using CasC, the documentation is: Configuration as Code.
Another option would be to recreate the pod template on the controller through Manage Jenkins > Clouds
and create or modify a Kubernetes cloud with the desired pod template.
If you need to review the existing shared pod template, you can do so by viewing the xml file for the Kubernetes shared cloud.
This can be seen by navigating to the Kubernetes shared cloud item and the appending config.xml
to the end of the url, for example https://CJOC_URL/cjoc/view/Clouds/job/kubernetes%20shared%20cloud/config.xml
.
You can also review it on the operations center filesystem at JENKINS_HOME/jobs/kubernetes-shared-cloud/config.xml
.
If you only would like to made a small change to existing pod template configurations while awaiting the fix in a future product version (for example, you would like to update the tag of a container image), you can modify the following file on the operations center filesystem JENKINS_HOME/jobs/kubernetes-shared-cloud/config.xml
, then either restart the operations center, or go to Manage Jenkins
→ Reload Configuration from Disk
.