Kubernetes: How to move a pod to another node

5/18/2020

I have a cluster with 2 nodes with local storage, I want to move a pod and its volume from node 1 to node 2, because the disk of node 1 is a little full. thanks

-- Khalil Meg
kubernetes
kubernetes-pvc

1 Answer

5/18/2020

Either use Volume Snapshot

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-snapshot-and-restore-volume-from-snapshot-support

Or

Use Velero, Velero is an open-source tool to safely backup and restore k8s resources & PV's

https://velero.io/

-- hdhruna
Source: StackOverflow