Loading video player...
In this video, you’ll learn how Kubernetes Configuration Management works in real-world DevOps projects. We break down ConfigMap and Secrets step-by-step with practical examples, showing how to securely manage environment variables, sensitive data, and application settings inside a Kubernetes cluster. ✅ What you’ll learn in this tutorial: * What is Kubernetes Configuration Management * ConfigMap explained with real examples * Kubernetes Secrets and secure data handling * Environment variable injection in Pods * Mounting ConfigMap & Secrets as files * Best practices for production Kubernetes setups https://softapptechnologies.com/janakpuri/ https://softapptechnologies.com/ https://softapptechnologies.com/gurugram --------------------------------------------------------------------------code yml------------------------------------------------ ----------configmap.yml-------------- apiVersion: v1 kind: ConfigMap metadata: name: app-config data: APP_NAME: "MyK8sApp-7-2-206" APP_ENV: "production" --------------------------base-64-base---------- [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("admin")) [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("12345")) -------------------secret.yml------------------- apiVersion: v1 kind: Secret metadata: name: db-secret type: Opaque data: DB_USER: c29mdGFwcA== DB_PASS: c29mdGFwcDEyM0A= --------------------env-pod.yml------------------- apiVersion: v1 kind: Pod metadata: name: config-demo-env-pods spec: containers: - name: demo-container image: shivsoftapp/backend-dashbaord-ui:033 envFrom: - configMapRef: name: app-config - secretRef: name: db-secret volumeMounts: - name: secret-volume mountPath: "/etc/secret" readOnly: true volumes: - name: secret-volume secret: secretName: db-secret ----------------------------RUNING CAMMAND FOR FILTER------------------- 1. kubectl exec config-demo-pod -- printenv | findstr APP 2. kubectl exec config-demo-pod -- printenv | findstr APP 3. kubectl exec config-demo-pod -- printenv | findstr DB 4 .kubectl exec -it config-demo-env-pods -- /bin/sh printenv APP_NAME printenv APP_ENV printenv DB_USER printenv DB_PASS or kubectl exec config-demo-env-pods -- sh -c "printenv APP_NAME APP_ENV DB_USER DB_PASS" -------------------------------------------------------------------------------code-yml close--------------------------------------------------- This tutorial is perfect for DevOps engineers, developers, and Kubernetes beginners who want hands-on knowledge of managing application configuration in production environments. 👉 Don’t forget to like, share, and subscribe for more advanced DevOps and Kubernetes tutorials. #Kubernetes #DevOps #ConfigMap #KubernetesSecrets #K8sTutorial #ConfigurationManagement #Docker #CloudComputing