Kubectl commands
Use kubectl commands to check on the Kubernetes resources deployed in the Kubernetes cluster platform like Red Hat OpenShift. On Red Hat OpenShift platform, oc command can be used besides kubectl command.
Some of the useful commands are as follows:
- List running pods in a specific namespace under Kubernetes cluster
kubectl get pod --namespace=<namespace_name>oc get pod --namespace=<namespace_name> - Describe the Kubernetes resources in a running Kubernetes cluster
kubectl describe <resource_type> <resource_name> - List of ingress resources created in the Kubernetes cluster
kubectl get ingress --namespace=<namespace_name>oc get route --namespace=<namespace_name>