Docker container live migration in kubernetes

6/29/2021

I am searching for a tutorial or a good reference to perform docker container live migration in Kubernetes between two hosts (embedded devices - arm64 architecture).

As far as I searched on the internet resources, I could not find a complete documentation about it. I am a newbe and it will be really helpful if someone could provide me any good reference materials so that I can improve myself.

-- k srinidhi
docker
kubernetes
migration

1 Answer

7/7/2021

Posting this as a community wiki, feel free to edit and expand.


As @David Maze said in terms of containers and pods, it's not really a live migration. Usually pods are managed by deployments which have replicasets which control pods state: they are created and in requested amount. Any changes in amount of pods (e.g. you delete it) or using image will trigger pods recreation.

This also can be used for scheduling pods on different nodes when for instance you need to perform maintenance on the node or remove/add one.


As for your question in comments, it's not necessarily the same volume as it can I suppose have a short downtime.

Sharing volumes between kubernetes clusters on premise (cloud may differ) is not a built-in feature. You may want to look at nfs server deployed in your network:

Mounting external NFS share to pods

-- moonkotte
Source: StackOverflow