core concepts Flashcards

1
Q

Run ephemeral pod and output command

A

k run my-pod –image=busybox -it –rm –restart=Never – env

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

Whats the wget flag to send to standard out?

A

wget -O- 1.2.3.4:80

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

Command to get logs of prevous pod instance?

A

k logs my-pod –previous

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

Print an existing containers env to your standard out?

A

k exec nginx – env > log.txt

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

Command to watch the k get pods output in real-time?

A

k get pods -w

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

What is the spec path to an init container?

A

pod.spec.initContainers

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

Command to get a hierarchy fields of a type?

A

k explain pod –recursive=true

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