3 ms·
It is not a default by any means, you can write it down to yaml as plain text too without any processing[0]. Just for some reason people decided to always use b
by margor 5y ago
It is not a default by any means, you can write it down to yaml as plain text too without any processing[0]. Just for some reason people decided to always use base64 without any actual reason behind it.
Edit: There is reason to do it explained above[1] - to store binary data in the yaml, but doesn't change fact you don't have to use it.
[0] https://kubernetes.io/docs/concepts/configuration/secret/#basic-authentication-secret https://kubernetes.io/docs/concepts/configuration/secret/#ba...
[1] https://news.ycombinator.com/item?id=27731430 https://news.ycombinator.com/item?id=27731430
- topspin 5y ago> It is not a default by any means Yes it is. Caution: Kubernetes Secrets are, by default, stored as unencrypted base64-encoded strings. https://kubernetes.io/docs/concepts/configuration/secret/ https://kubernetes.io/docs/concepts/configuration/secret/
- margor 5y agoI'm sorry, I thought it was about storing it in yaml and not the underlying storage method.