DevOps(Day-44) : Mastering ConfigMaps in Kubernetes
TABLE OF CONTENTS
ConfigMaps
Task-1: Create ConfigMap for your Deployment
ConfigMaps
The ConfigMap API resource holds key-value pairs of configuration data that can be consumed in pods or used to store configuration data for system components such as controllers.
ConfigMaps are intended for non-sensitive data—configuration data—like config files and environment variables and are a great way to create customized running services from generic container images.
Task-1: Create ConfigMap for your Deployment
Create a configmap.yml file to include all the configurations required.
Run the file using kubectl command.
Change the deployment.yml file to include the configMap properties in the deployment.
Run the deployment file and check for the deployment and config map are running.
Use the describe command for a detailed view of the config map.
Navigate inside the Pod and check the environment variable and the application for detailed status.
Thanks for reading my article. Have a nice day
Comments
Post a Comment