An app needs both a private registry pull credential and a database password. Which Secret-type guidance is correct?
Select an answer to reveal the explanation.
Short Explanation
Different locks for different doors: dockerconfigjson for pulling images, Opaque for the app's DB password. Mixing them into one bootstrap token or a TLS Secret type just muddies the purpose. ConfigMaps still aren't for passwords.
Full Explanation
Image pull credentials belong in docker-registry / kubernetes.io/dockerconfigjson Secrets referenced via imagePullSecrets. Application credentials such as database passwords belong in Opaque Secrets consumed via env or volumes. Bootstrap token and TLS Secret types serve other purposes; ConfigMaps should not store pull passwords or DB secrets.