79334493

Date: 2025-01-06 22:29:20
Score: 1
Natty:
Report link

Not sure if this is still relevant or not but you seem to have a misunderstanding of the paradigm of k8s as it related to pods. Pods are seen as basically throw away. Pod died, start a new one. Pod evicted, start a new one elsewhere, etc. The only times that k8s really keeps them around is some small cases where there's a small hickup actually starting the pod, like resources or such.

In order to get something that will stay alive you want to use something like a Deployment, DaemonSet, StatefulSet, etc. You provide a template spec to these objects and they manage the creation of the Pods for you.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alex Orange