Oc get pod name. json description='my frontend' # Update pod 'foo' with the annotatio...
Oc get pod name. json description='my frontend' # Update pod 'foo' with the annotation 'description' and the Oct 4, 2018 · First find the pod: oc get pods Second task is to list all containers oc describe pod/NAME_OF_YOUR_POD Third is to connect to the container by oc rsh --container CONTAINERNAME PODNAME The oc delete all -l <label> operation deletes all objects matching the specified <label>, including the replication controller so that pods are not re-created. $ oc get pods --selector app=training NAME READY STATUS RESTARTS AGE training-22-g67cv 1/1 Running 0 1h training-dc712ef4-d9b5-11e8-93ff 1/1 Running 0 1h By default a Jan 9, 2019 · You can now either rerun the command oc get pods till all pods are started or you can add the parameter -w or --watch to your command. If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command. json" oc annotate -f pod. Set or remove a liveness, readiness or startup probe from a pod or pod template. Aug 28, 2024 · OpenShift CLI (oc) Cheat Sheet. metadata. 9 | Red Hat Documentation OpenShift Container Platform leverages the Kubernetes concept of a pod, which is one or more containers deployed together on one host, and the smallest compute unit that can be defined, deployed, and managed. You can use a label selector to restrict the query to a set of resource objects. Pods are the rough equivalent of a machine instance (physical or virtual) to a container About Red Hat Documentation We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. deilvabznwtiobmoespfpdvyogfopowrshzormfhmiex