I have a public key that all my pods needs to have.
My initial thought was to create a ConfigMap or Secret to hold it but as far as I can tell neither of those can be used across namespaces. Apart from that, it's really boiler plate to paste the same volume into all my Deployments
So now I'm left with only, in my opinion, bad alternatives such as creating the same ConfigMap/Secret in all Namespaces and do the copy-paste thing in deployments.
Any other alternatives?
Extra information after questions.
- The key doesn't need to be kept secret, it's a public key, but it needs to be distributed in a trusted way.
- It won't rotate often but when it happens all images can't be re-built.
- Almost all images/pods needs this key and there will be hundreds of images/pods.