Published in


Fix Kubernetes Cron Job invalid: spec.template field is immutable

The Kubernetes job on apply fails.

kubectl apply -f /home/my.job.yaml


The Job "xyz" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{:} field is immutable


The job once applied, can’t be re-applied.

We should delete the job as follows and apply again.

kubectl delete -f /home/my.job.yaml




Discuss design, distributed systems, developer tools, programming languages

Recommended from Medium

TRON Developer Guide — TRON-CLI

How To Build A Custom Text Classification Model With AWS Comprehend

Is Abstraction a solution for most of your complex problem

3 Benefits of Outsourcing the QA and Testing of Your New Programming Software

New Version of dbForge SQL Complete Embraces Data Protection

#MBL : On April 15th, 3333 NFTs will be released by Meta Bunny Legends (

How to create a Telegram BOT

How can you liberate a meeting without using Liberating Structures?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simplify Complexity

Simplify Complexity

Golang, Distributed Systems, File Systems, Python, C/C++, Linux

More from Medium

Docker pull container rate limit workaround for pods

Container Orchestration

Newsletter of Carlos Santana — Issue #22

Testing Gatekeeper constraints with gator CLI