I have a Kubernetes pod with a persistent volume mounted at /data
. I am trying to use the pod for remote development and as such, need to ensure that my private ssh key persists upon pod restart so I can continue to authenticate to GitHub without generating a new key.
I tried export HOME="/data"
and pointing ssh-keygen
to /data/.ssh
but I was still unable to authenticate to GitHub. Presumably, ssh is not looking at /data/.ssh
for my private key. What is the solution here? I do have control over the Dockerfile used for the pod if there is any config there that is necessary.