Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the consultup domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/portal/wp-includes/functions.php on line 6121
Stopping a pod on kubernetes – University of Highlands and Islands

Stopping a pod on kubernetes

You are here:
< All Topics

It is not possible to stop a kubernetes pod but you can delete it from the kubernetes instance or pause it by setting replicas to 0.

You can control kubernetes and your running pods from the Kubernetes Dashboard available through the IBM Cloud website.

To list your pods type:

kubectl top pod

To get information on your pod type:

kubectl describe pod

To delete your pod type:

kubectl delete -n default pod <pod-name e.g. nodehelloworld-deployment-59b5cdf8c8-p5fsm>

To pause a pod you can set its replicas to 0:

kubectl scale –replicas=0 <pod-name>

Leave a Reply

Table of Contents