Configuration Flashcards
What is a config map ?
A key value store of configuration data
How is a config map defined ?
In a yaml file
What is the kind object for a config map ?
ConfigMap
Why is the config maps name element important ?
Because that is whats used to supply data to pods
How is data stored in a config map file ?
Under a data element you can specify key:value
How do you supply config map data to a pod as an environment variable ?
Specify the env variable in the spec with name and valuefrom which contains configMapKeyRef
Beside specifying it as a env how else can you supply config data to a pod ?
Via a mounted volume
What happens to configmap data when you supply it via a mounted volume ?
The keys in the yaml file become separate files in the mount location specified.
What is a security context ?
Defines privelege and access control for a pod
What yaml items represent a security context ?
securityContext, runAsUser, fsGroup
What type of value does runAsUser and fsGroup take?
The id of the user and the group
What is the default user the pod runs under ?
root
What is a resource requirement ?
The amount of resource such as memory and cpu required for the pod.
What impact does a resource requirement have ?
Determines which node the pod will be launched on
What is a resource limit ?
A constraint on the amount of resources a pod can use