K8 config file Flashcards

1
Q

3 parts of a Kubernetes config file

A

config file main thing for configuring components in k8 cluster

metadata
specification
status (this is generated by K8) (k8 looks at desired state and actual state, if does not match k8 will try to fix this)

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

What does etcd do?

A

This holds the status of any k8 cluster

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

Whats template?

A

Where pod has its own configuration. Port to open, image based on etc etc

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

How do you know which pods belong to which

A

using labels (this is in config file) and selectors (this is in service component)

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

kubectl get secret

A

get secret

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

How to reference a secret in k8 config file without values

A
Template >> specificiation
ValueFrom
SecretkeyRef
Name
Key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

kubectl describe

A

can see information about the pod

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

how to reference ConfigMap in yaml file

A

very similar to secret. different is putting ‘configmapkeyref’ instead

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