Skip to main content
Version: 2.9

Portworx Backup Job Pods

A Kubernetes Job is a controller that ensures a pod (or multiple pods) completes a finite task successfully. Unlike long-running deployments, Jobs are designed to run once and exit, making them ideal for batch or one-off tasks.

How Job Pods work

When a Job is created, it spawns one or more pods to complete the specified task. Once the task completes successfully, the Job is marked as complete, and the pods are either kept for logs or auditing or cleaned up depending on the settings.

If the pod fails, Kubernetes can retry the Job according to the spec. For example: backoffLimit, restartPolicy and so on

Types of Kubernetes Job Patterns

  • Single Pod Job: runs once and exits

  • Parallel Jobs: run multiple pods simultaneously (for example, data splitting)

  • Indexed Jobs (with completions): useful for parallel tasks needing tracking

Portworx Backup Cluster Job Pods

OperationJob PodPurpose
InstallPre install hookPrepare environment before installing components
Post install hookPerform validation/configuration tasks after install
UpgradePre upgrade hookBackup or prepare system before applying upgrade
Post upgrade hookVerify upgrade, clean up temp data, update configurations
Post installPost install hookFinalize setup post install
Cron jobQuick maintenancePerform lightweight scheduled maintenance tasks
Full maintenancePerform comprehensive health checks or data maintenance

Application Cluster Job Pods

OperationJob PodPurpose
Node agentStork Pods Stork is a larger component that supports multiple use cases. For PXB, Stork pods initiate and schedule backups and restores by executing the complete workflow.
BackupBackup PodPerforms backup operations:
  • KDMP backup: backup pod runs on the live PVC and uploads the backup to the backup location.
  • CSI+Offload backup: the snapshot is restored to a PVC, and during the upload phase to the backup location, the pod runs on the restored PVC which is cleaned up after the upload is complete.
  • RestoreRestore PodRestores KDMP backup present in the backup location
    Command ExecutionCmd Executor podExecutes pre and post exec rule during backup
    NFS OperationsNFS Executor PodResource upload/download when backup/restore is done to a NFS Backup location