Create Symlink in Kubernetes deployment

2/10/2020

I want to create a symlink using a kubernetes deployment yaml. Is this possible?

Thanks

-- andrew headington
kubernetes
symlink

1 Answer

2/10/2020

Not really but you could set your command to something like [/bin/sh, -c, "ln -s whatever whatever && exec originalcommand"]. Kubernetes isn't involved per se, but it would probably do the job. Normally that should be part of your image build process, not a deployment-time thing.

-- coderanger
Source: StackOverflow