Skip to main content
  1. Today I learned/

Immutability of pods in Kubernetes

·71 words·1 min· loading · loading · ·
Marius Kimmina
Author
Marius Kimmina
IT Infrastructure at scale
Table of Contents

First of, pods in Kubernetes aren’t entirely immutable - just mostly.

Most of the metadata about a Pod is immutable. For example, you cannot change the namespace, name, uid, or creationTimestamp fields;

See https://kubernetes.io/docs/concepts/workloads/pods/ for the above quote

If I want to change the name or the namespace of a pod, I can’t. I have to instead make a new Pod and delelte the old one.

Further reading
#

https://blog.dave.tf/post/new-kubernetes/#mutable-pods https://kubernetes.io/docs/concepts/workloads/pods/