DevOps(Day-44) : Mastering ConfigMaps in Kubernetes

 

  • ConfigMaps

  • Task-1: Create ConfigMap for your Deployment

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.

  1. Create a configmap.yml file to include all the configurations required.

  2. Run the file using kubectl command.

  3. Change the deployment.yml file to include the configMap properties in the deployment.

  4. Run the deployment file and check for the deployment and config map are running.

  5. Use the describe command for a detailed view of the config map.

  6. Navigate inside the Pod and check the environment variable and the application for detailed status.

    1. Thanks for reading my article. Have a nice day

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction