Skip to content

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

kubectl label pod my-checkpointed-pod memverge.ai/checkpoint-mode-

To remove the checkpoint volume size label as well:

kubectl label pod my-checkpointed-pod memverge.ai/checkpoint-volume-size-

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

  1. Edit the Deployment:

    kubectl edit deployment my-deployment
    
  2. Remove the memverge.ai/checkpoint-mode and any other MemVerge labels from the template.metadata.labels section.

  3. 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

kubectl label --overwrite namespace mynamespace memverge.ai/checkpoint-mode- --all

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

kubectl label pods -l app=legacy-app memverge.ai/checkpoint-mode-