Docker Community Forums

Share and learn in the Docker community.

Migrating docker containers and its services

Let me explain my scenario. I have two Kubernetes clusters 1&2 - one master and two worker nodes running on each cluster. I want to move the services from one cluster to another cluster. For ex, now the service requests are processed in cluster 1(inside the pod of worker node number 2). Capture the running containers as an image and move it to cluster 2. Create a pod in the worker node of cluster 2 and make the services resume and run. Once the requests are processed, the response message should be sent to the user from cluster 2. The user should not know about the service movement that happened.

My question is what the step are the steps to follow to move the services and establish internal communication between the clusters. There is not many references about the cluster communication. I used docker commit command to snapshot an image and stuck with the further steps. Kindly help

My environment setup consists OS/Kernel Linux Ubuntu 18.04, Tegra 4.9 Kubernetes v1.16 Docker 18.09.7 .I use Jetson Xavier for all master and worker nodes(8-core ARMv8.2 8 MB L2+4 MB L3, 16 GB LPDDR4, GPU - 512-core Volta with Tensor Core & Network module Intel AC9560, AGW 200)