oc adm - Tools for managing an OpenShift cluster
oc adm COMMAND
Options you will use
policy- add-scc-to-user, add-role-to-user, who-can, scc-review, scc-subject-review
upgrade- show / change the update channel and start an update
must-gather / inspect- support data
top / cordon / uncordon / drain / taint- the node verbs you know from kubectl
new-project NAME- create a project without the ProjectRequest template (no requester admin binding)
Examples
$ oc adm policy scc-subject-review -f pod.yamlwhich SCC would admit this pod
$ oc adm upgrade channel stable-4.22move to the next minor's channel
Gotchas
- add-scc-to-user without -n binds CLUSTER-wide (ClusterRoleBinding system:openshift:scc:NAME).
Taught in
Try oc adm in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.