Configmaps
Scenario 1
Step 1: Configure configmapas environment variable
kubectl apply -f configmapAsEnv.yamlStep 2: View the configmap
kubectl get configmapkubectl describe configmapStep 3: Perform a Deployment
kubectl apply -f deployConfigAsEnv.yamlStep 4: View the Deployments
kubectl get deploymentsStep 5: Verify the Environment Variable
kubectl exec <<POD-NAME>> -c nginx -- envScenario 2
Step 1: Configure configmapas file
kubectl apply -f configmapAsFile.yamlStep 2: View the configmap
Step 3: Deployment
Step 4: View the Deployments
Step 5: Verify the Variables
Clear Everything in the current namespace
Last updated
Was this helpful?