Set 2 Flashcards

1
Q

namespace shorthand

A

export sns=’kubectl config set-context –current –namespace’

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

tmp shorthand

A

export temp=’kubectl run tmp –restart=Never –rm -i –image=nginx:alpine –’

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

tmp shorthand

A

export temp=’kubectl run tmp –restart=Never –rm -i –image=nginx:alpine –’

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

service selector point to pod or deployment?

A

pod

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

check pod on port 80 with liveness probe

A

livenessProbe:
tcpSocket:
port: 80

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

create quick debug container for running pod with

A

kubectl debug

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

make changes to resource with

A

kubectl patch

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

dont delete pod and then apply:

A

kubectl replace -f file

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

container env var from conf map

A

valuesFrom: configMapKeyRef

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

container env var from secret

A

valueFrom: secretKeyRef

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

redinessprobe for http request

A

readinessProbe:
httpGet: path, port

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

container env var from conf map

A

valuesFrom: configMapKeyRef

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

container env var from conf map

A

valuesFrom: configMapKeyRef

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

container env var from conf map

A

valuesFrom: configMapKeyRef

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

container env var from conf map

A

valuesFrom: configMapKeyRef

15
Q

container env var from conf map

A

valuesFrom: configMapKeyRef

16
Q

container env var from conf map

A

valuesFrom: configMapKeyRef

17
Q

container env var from conf map

A

valuesFrom: configMapKeyRef