Usage of oc and kubectl commands
The oc
binary offers the same capabilities as the kubectl
binary, but it extends to natively support additional OKD features, including:
Full support for OKD resources
-
The additional command , for example, makes it easier to get new applications started using existing source code or pre-built images. Similarly, the additional command
oc new-project
makes it easier to start a project that you can switch to as your default.
The kubectl binary
The kubectl
binary is provided as a means to support existing workflows and scripts for new OKD users coming from a standard Kubernetes environment, or for those who prefer to use the kubectl
CLI. Existing users of kubectl
can continue to use the binary to interact with Kubernetes primitives, with no changes required to the OKD cluster.
For more information, see the .