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
2
Q
Command to remove all env labels from all nodes with labels
A
$ oc label node -l env env-
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.
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