CLI for Operations for Openshift
![Hình ảnh](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0dNdLsk-5s9eXFj8rGiQqitzNxLaJ1RYu0mzwTQx1RetdyDXRnpFggBfOQE1itvB6sVQy8m8vtsu4Oxgo7ekdJOcrho_S2UFbzja67F1OxMQhscGGV3dUzy40vJLwaJkdv6b0b7-31WN7xRaZnd-NM7w6YgF6IksBPKhzP17RhzKriaFFkIXUp-JOmg/w534-h242/openshift.png)
Common Operations The CLI allows interaction with the various objects that are managed by OpenShift. Many common oc operations are invoked using the following syntax: 1 $ oc <action> <object_type> <object_name_or_id> This specifies: An <action> to perform, such as get or describe . The <object_type> to perform the action on, such as service or the abbreviated svc . The <object_name_or_id> of the specified <object_type> . For example, the oc get operation returns a complete list of services that are currently defined: 1 $ oc get svc 2 NAME LABELS SELECTOR IP PORT(S) 3 docker-registry docker-registry=default docker-registry=default 172.30.78.158 5000/TCP 4 kubernetes component=apiserver,provider=kubernetes <none> ...