Openshift: Difference between revisions
Jump to navigation
Jump to search
(→csi) |
|||
Line 1: | Line 1: | ||
= | =What does it mean?= | ||
csi Container Storage Interface | csi Container Storage Interface | ||
Revision as of 07:31, 21 April 2021
What does it mean?
csi Container Storage Interface
List projects
oc projects
select project
oc project $project
list pods
oc get pods oc get pods --all-namespaces
connect to pod
oc rsh $pod bash
describe pods
oc describe pods
To get (almost) all object with a specific label from the current project, execute:
oc get all -l '<label_name>=<label_value>'
logs
oc logs -f router-default-6b76b87c6-4lc4b logs > /tmp/tmp
get config from pod in yaml format
oc get pods router-default-545ffb97db-kgsdb -o yaml
get deployments
oc get deployment
set environment variable in pod
oc set env $pod_template
list environment variables
oc set env pod/router-default-545ffb97db-lj2t5 --list
list templates
oc get templates -n openshift
Custom resource definitions.(crd)
oc get crd