Hey, Is there any option to mount secrets as volum...
# ask-metaflow
b
Hey, Is there any option to mount secrets as volume inside the pod? We also didn't see any way to get environment variables inside the pod from a config map, are those supported/planned to be supported? Thanks ๐Ÿ™
โœ… 1
u
Hey Tomer, Metaflow supports Kubernetes
secrets
today in the @kubernetes decorator or on the cli. These secrets are mounted as env variables in the pod [1]. What's your use-case for having the secrets mounted as a volume in the pod? There is an issue filed for supporting mounting volumes. But, looks like it refers to storage volumes. Can you file one for supporting mounting of config maps? You can pass env variables directly as well. But, you'd need to know those values upfront (unlike in a configmap).
b
Hi, our passwords and tokens are being used inside our services using config maps and secrets, we would like to use them also here so we wonโ€™t need to extract our tokens and pass them in a way that will be safe. For that we need to mount a volume for those tokens. Hope it was clear enough.
u
It certainly does.. Thanks for sharing!
๐Ÿ™ 1