OpenShift

Secrets

# login to openshift cluster
oc login OPENSHIFT_URL
 
# list stuff
oc -n NAMESPACE get all,configmap
# remove stuff
oc -n NAMESPACE delete all,configmap --all
 
# list service accounts
oc -n NAMESPACE get sa
# create service account
oc -n NAMESPACE create sa SA_NAME
# display service account secret (use first token)
oc -n NAMESPACE describe secret SECRET_NAME
 
# get configmap
oc -n NAMESPACE get configmap CONFIGMAP_NAME