For applications to be portable, an application’s configuration will change between environments. So, we should try to keep the configuration out of the container image with our Docker containers.
A ConfigMap affords a method to include non-sensitive data information in your deployment. A configmap contains information in key-value pairs. However, the values can also be entire config files or JSON blobs to store more information.
A secret affords a method to include sensitive configuration data, such as passwords or SSH keys, to your deployment. Ans anyone who is authorized to your project can also view your secrets; be sure that you know that this information can be shared with those users. Secrets also hold information in key-value pairs.
Wanna know more about ConfigMaps and Secrets in Kubernetes? Want to create your own configmaps and secrets? Check out this blog k21academy.com/kubernetes43.
Register for the FREE class now – k21academy.com/kubernetes02
Also, join our FREE Telegram group https://t.me/k21dockerkubernetes, so you don’t miss out on Docker & Kubernetes related latest news and updates
Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.