OpenShift CHEATSHEET


看到的最好的一份CheatSheet,收藏保留。

Openshift Container Platform Login and Configuration

#login with a user
oc login https://192.168.99.100:8443 -u developer -p developer

#login as system admin
oc login -u system:admin

#User Information
oc whoami 

#View your configuration
oc config view

#Update the current context to have users login to the desired namespace:
oc config set-context `oc config current-context` --namespace=

Openshift Container Platform Basic Commands

#Use specific template
oc new-app https://github.com/name/project --template=