Saved Bookmarks
| 1. |
What is the difference between config map and secret? (Differentiate the answers as with examples) |
|
Answer» Config maps ideally stores APPLICATION configuration in a plain text format whereas Secrets store sensitive data like password in an encrypted format. Both config maps and secrets can be USED as volume and MOUNTED inside a pod through a pod definition file. Config map: kubectl create configmap myconfigmap --from-literal=env=devSecret: echo -N ‘admin’ > ./username.txt echo -n ‘abcd1234’ ./password.txt kubectl create secret generic mysecret --from-file=./username.txt --from-file=./password.txt |
|