Configuration Flashcards

1
Q

What is a config map ?

A

A key value store of configuration data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is a config map defined ?

A

In a yaml file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the kind object for a config map ?

A

ConfigMap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is the config maps name element important ?

A

Because that is whats used to supply data to pods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is data stored in a config map file ?

A

Under a data element you can specify key:value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you supply config map data to a pod as an environment variable ?

A

Specify the env variable in the spec with name and valuefrom which contains configMapKeyRef

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Beside specifying it as a env how else can you supply config data to a pod ?

A

Via a mounted volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens to configmap data when you supply it via a mounted volume ?

A

The keys in the yaml file become separate files in the mount location specified.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a security context ?

A

Defines privelege and access control for a pod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What yaml items represent a security context ?

A

securityContext, runAsUser, fsGroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What type of value does runAsUser and fsGroup take?

A

The id of the user and the group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the default user the pod runs under ?

A

root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a resource requirement ?

A

The amount of resource such as memory and cpu required for the pod.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What impact does a resource requirement have ?

A

Determines which node the pod will be launched on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a resource limit ?

A

A constraint on the amount of resources a pod can use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens when a pod exceeds its resource limits?

A

It is killed off

17
Q

What are secrets ?

A

A way to store sensitive data in your cluster

18
Q

Whats the process for creating a secret via a yaml file ?

A

Create a yaml file with a kind of secret, supply the secret in a key value pair, kubectl apply delete yaml and then reference the name of the secret in the pod yaml file