Containers Flashcards

1
Q

What are the types of imagePullPolicy and which is the default?

A

IfNotPresent, Always, Never the default is IfNotPresent and is configured on resource files.

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

What are container lifecycle hooks what are their types?

A

Container lifecycle hooks are trigger points that can execute custom logic which is executed by handlers. The two types are PostStart and PreStop.

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

What are hook handlers and what are their types and what executes them?

A

Hook handlers implement logic to be run by container lifecycle hooks and are of type exec which runs a shell command or script and is executed on the container directly and http which executes a request on a specific endpoint on the Container and is executed by the kubelet

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