Saved Bookmarks
| 1. |
When deploying you will get an error of mounting as read-only, which is effecting to fluent to read some of the mentioned sources in the configmap.how can we avoid this read-only error? |
|
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 |
|