<div dir="ltr">Hello,<div>  today, I was on L&amp;L about storage in OpenShift and I learn interesting thing. I always thought, that everything needs to be immutable and stateless and all the state needs to be handled by means of NFS persistent volumes. Luckily, there is a feature in Kubernetess (since 1.3) that allows the PODs to be treated as pets. It&#39;s called PetSet [1] and it assigns a unique ID (and persistent DNS record) to a POD that runs in this &quot;mode&quot;.</div><div><br></div><div>Common use-case for PetSet is a set of pods with a relational DBs that uses some kind of master-slave replication and slaves needs to know the master&#39;s address. But it can be used for anything. We can use the hostname as the feed id for instance.</div><div><br></div><div>I don&#39;t know how much this will be popular because it kind of defeats the purpose of immutable infrastructure but it can save us some work with the feed identity. And of course we need to support also the &quot;normal&quot; POD scenario.</div><div><br></div><div><br></div><div>[1]: <a href="http://kubernetes.io/docs/user-guide/petset/">http://kubernetes.io/docs/user-guide/petset/</a></div><div><br></div><div>jk</div></div>