- Basic structure
- oc [name]
- There are some exceptions, like
oc help
oroc logs <pod>
oroc exec
- Most commands support
oc <command> --help
- Common resources (nouns)
- Pods
- Deployments
- Services
- Routes
- ConfigMaps
- Secrets
- Common actions (verbs)
- get
- get -o {yaml,json}
- describe
- create
- edit
- delete
- apply
- set
- patch
- label
- annotate
- expose
- scale
- autoscale
- Common commands that don't follow the verb/noun pattern
- oc help
- oc login
- oc new-project
- oc new-app
- oc status
- oc project
- oc explain
- Common command examples
- oc login -u
- oc new-project basic-ocp-demo-development
- oc new-app https://github.com/FreedomBen/basic-ocp-demo#development
- oc expose svc basic-ocp-demo
- oc get pods
- oc get pods
- oc get pods -o yaml
- oc get pods -o json
- oc describe pod
- oc delete pod # see how a new one gets spun up
- oc get deploy
- oc get deploy
- oc get deploy -o yaml
- oc describe deploy
- oc get services
- oc get service -o yaml
- oc get route
- oc get route -o yaml
Created
January 8, 2021 02:23
-
-
Save FreedomBen/f95328a846c62dcc332b92f5ee1f5a71 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment