DCA · Question #91
You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this? Solution: Mount the configuration file directly into the appropriate po
The correct answer is B. No. This method of mounting a configuration file directly using a .spec.containers.configMounts key is incorrect in Kubernetes.
Question
You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this? Solution: Mount the configuration file directly into the appropriate pod and container using the .spec.containers.configMounts key.
Options
- AYes
- BNo
How the community answered
(22 responses)- A14% (3)
- B86% (19)
Why each option
This method of mounting a configuration file directly using a `.spec.containers.configMounts` key is incorrect in Kubernetes.
The `.spec.containers.configMounts` key does not exist in the Kubernetes API for mounting configuration files directly into containers.
Kubernetes does not have a `.spec.containers.configMounts` key for directly mounting configuration files. Configuration files are typically provided to containers via ConfigMaps or Secrets, which are then mounted as volumes into the pod and container.
Concept tested: Kubernetes ConfigMap usage
Source: https://kubernetes.io/docs/concepts/configuration/configmap/
Topics
Community Discussion
No community discussion yet for this question.