Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

After upgrading the kubernetes plugin, pod templates defined with `containerTemplate` fail with `ERROR: Invalid pod template` or fields are ignored

AdvancedTroubleshootingPlugins, JCasC & Kubernetes agents
Answer

Likely causes → Deprecated fields removed or behaviour changed between plugin versions; YAML merge strategy defaults changed.

Diagnose → Plugin changelog, controller logs at FINE for org.csanchez.jenkins.plugins.kubernetes, the generated pod YAML (printed at build start in the log).

Fix → Migrate to raw yaml pod specs (most stable interface), set yamlMergeStrategy explicitly.

Prevent → Upgrade plugins on staging with smoke pipelines covering each template.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents