DevOps interview Qs Flashcards

1
Q

Why might I choose the get config to a pod using a config map, rather than setting env vars in helm

A

Can change config map on running pod

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

Why secrets in mount rather than env var

A

Env var could leak to sub processes or get in logs

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

Command that run when pod starts defined in dockerfile. Can I override the startup command when I run a pod running that image in k8s

A

Yes.

Dockerfile:
Entry point
Cod

K8s yaml
Command: [“”]
Args:[“”,””]

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