Projects

Deployments are stateless by design. Hence, any data stored inside the Pod’s container does not persist when the Pod dies.

If you were to update the content of the index.html file inside the container, and the Pod dies, that content will not be lost since a new Pod will replace the dead one.

Let us try that:

  1. Scale the Pods down to 1 replica.
NAME                                READY   STATUS        RESTARTS   AGE
nginx-deployment-56466d4948-58nqx   0/1     Terminating   0          45m
nginx-deployment-56466d4948-5z4c2   1/...
Learn More