hardkubectl
Create a ConfigMap by importing all key-value pairs from a .env file
command
kubectl create configmap CONFIG_NAME --from-env-file ENV_FILEalso accepted
kubectl create configmapkubectl create configmap CONFIG_NAME --from-env-filecommand
kubectl create configmap CONFIG_NAME --from-env-file ENV_FILEalso accepted
kubectl create configmapkubectl create configmap CONFIG_NAME --from-env-filePart of the Kubernetes CLI (kubectl) — ConfigMaps & Secrets category.
| Flag | Purpose |
|---|---|
--from-env-file | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →