Removing Checkpointing Labels¶
To disable transparent checkpointing for a Pod, you can remove the MemVerge-related labels.
Removing Labels from Specific Pods using kubectl label
¶
Use the kubectl label --overwrite
command with a hyphen (-
) at the end of the label name to remove it.
Example: Disabling checkpointing for a Pod named my-checkpointed-pod
To remove the checkpoint volume size label as well:
Removing Labels from Workload Controller Templates¶
To permanently disable checkpointing for Pods managed by a controller, you need to remove the MemVerge labels from the template.metadata.labels
section of the controller's specification and then apply the updated specification. Existing Pods will retain the label until they are recreated or updated by the controller.
Example: Disabling checkpointing in a Deployment
-
Edit the Deployment:
-
Remove the
memverge.ai/checkpoint-mode
and any other MemVerge labels from thetemplate.metadata.labels
section. - Save and close the editor. The Deployment will reconcile, and new Pods created will not have the checkpointing labels. You might need to manually delete existing Pods for the changes to take full effect on all instances.
Removing Labels from All Pods in a Namespace¶
Similar to adding labels, you can remove a label from all Pods in a namespace using kubectl label
with the --all
selector and the label name followed by a hyphen.
Example: Disabling checkpointing for all Pods in the mynamespace
namespace
Caution: Exercise caution when removing labels from all Pods in a namespace, as it will affect all applications running there.
Removing Labels from Pods Based on Selectors¶
You can remove labels from a specific set of Pods based on their existing labels.
Example: Disabling checkpointing for all Pods with the label app=legacy-app