Commands used in HCL OneTest Data

When you want to view the list of HCL® OneTest Data pods and to manage each of these pods, you can run the kubectl or oc commands on an SSH console.

The following table provides you the list of commands that you can use to manage the pods on the Kubernetes environment (k3s):

Commands Purpose Examples
kubectl get pods Shows the list of all pods with the status of each pod. -
kubectl get configmaps Shows the list of all configuration files. -
kubectl exec -it <podname> bash Helps to access the pod. kubectl exec -it {my-ots}-data-app -0 bash
kubectl edit configmap -n <namespace> <configmapName> -o yaml Edits the configuration file. kubectl edit configmap -n test-system {my-ots}-data-config -o yaml
kubectl delete pod <podname> Deletes and restart the pod. kubectl delete pod {my-ots}-data-app-0
kubectl logs <podname> Shows the logs of any specific pod. kubectl logs {my-ots}-data-app-0

The following table provides you the list of commands that you can use to manage the pods on the Red Hat OpenShift server:

Commands Purpose Examples
oc get pods Shows the list of all pods with the status of each pod. -
oc get configmaps Shows the list of all configuration files. -
oc exec -it <podname> bash Helps to access the pod. oc exec -it {my-ots}-data-app -0 bash
oc edit configmap -n <namespace> <configmapName> -o yaml Edits the configuration file. oc edit configmap -n test-system {my-ots}-data-config -o yaml
oc delete pod <podname> Deletes and restart the pod. oc delete pod {my-ots}-data-app-0
oc logs <podname> Shows the logs of any specific pod. oc logs {my-ots}-data-app-0