Sample Kubernetes command statement
Question:
Given the the following command, which of the following statements is correct? (Choose one.)
kubectl create configmap my_weather_app_config \
--from-literal WEATHER_HOST=value1 \
--from-literal WEATHER_STATION=value2 \
--from-literal WEATHER_UNITS=value3
- The command stores the provided literal values in a new configmap resource called my_weather_app_config
- The command stores the configuration values in base64
- The command injects the configuration values as environment variables in the my_weather_app_config deployment pods
- The command injects the provided literal values as a volume in the my_weather_app_config deployment pods
Answer:
A - is the correct answer