Skip to:
I created minimal PXC cluster
with FS PVC backup configured.
Then run the backup manually
. After it's completed, its job and pod stays.
When I try to remove the backup manually, with the command below, it blocks CLI and does not remove the backup job and pod.
$> kubectl delete pxc-backup/local-dev perconaxtradbclusterbackup.pxc.percona.com "local-dev" deleted
Note that the deletionTimestamp is set so I can cancel the command with control-C
deletionTimestamp
However when I delete finalizers for the backup, the job and pod are started deleting immediately.
finalizers
$> kubectl patch pxc-backup/local-dev --type=merge -p '{"metadata": {"finalizers": null}}' perconaxtradbclusterbackup.pxc.percona.com/local-dev patched
With S3 backup the deletion command exits successfully and the job is deleted.Only the backup pod is not deleted (see #K8SPXC-796 bug)
I created minimal PXC cluster
with FS PVC backup configured.
Then run the backup manually
. After it's completed, its job and pod stays.
When I try to remove the backup manually, with the command below, it blocks CLI and does not remove the backup job and pod.
$> kubectl delete pxc-backup/local-dev perconaxtradbclusterbackup.pxc.percona.com "local-dev" deleted
Note that the
deletionTimestamp
is set so I can cancel the command with control-CHowever when I delete
finalizers
for the backup, the job and pod are started deleting immediately.$> kubectl patch pxc-backup/local-dev --type=merge -p '{"metadata": {"finalizers": null}}' perconaxtradbclusterbackup.pxc.percona.com/local-dev patched
With S3 backup the deletion command exits successfully and the job is deleted.
Only the backup pod is not deleted (see #K8SPXC-796 bug)