Random Admin Info Flashcards

1
Q

Command to remove a project called myproject

A

$oc login -u <admin> -p <admin-password></admin-password></admin>

$ oc delete project myproject

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

Command to remove all env labels from all nodes with labels

A

$ oc label node -l env env-

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

Pod hello-world-54rdft54-sd34s has a status of Pending. How can you get more info on that pod?

A

$ oc describe pod hello-world-54rdft54-sd34s

Note: Pods in a Pending state do not have logs.

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

How do you find a pods node affinity?

A

$ oc describe pod <pod-name></pod-name>

Look at the setting for Node-Selectors

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