I have deployed a simple pod and after deployment, I want to change certain files inside the pod e.g. /etc/resolv.conf (to add a new DNS nameserver), /etc/hosts to add a new entry for IP/domain/alias etc. I don’t want to just simply edit the files using an editor like vi/vim, as that will not persist it upon pod restart.
How can I achieve this without restarting, recreating, or deleting my pod?
Secondly, how do I persist the changes that made upon a pod deletion or recreation event?