(Run this command at directory podmigration-operator/)
- To run Podmigration operator, which includes CRD and a custom controller:
$ sudo snap install kustomize
$ sudo apt-get install gcc
$ make manifests
$ make install
$ make run
- To run api-server, which enables
kubectl migrate
command and GUI: (at podmigration-operator/ directory)
$ go run ./api-server/cmd/main.go
- To install
kubectl migrate/checkpoint
command, follow the guide at https://github.com/SSU-DCN/podmigration-operator/tree/main/kubectl-plugin - To run GUI:
$ cd podmigration-operator/gui
$ npm install
$ npm run serve
- Migrate video streaming pod from node to node in single cluster:
- Migrate video streaming pod from cluster to cluster:
- https://www.youtube.com/watch?v=Bpdlgu0XZqo
- https://drive.google.com/file/d/1AeyJZTRJcayBelvXf-CZwFapoquBpns1/view?usp=sharing
- Run/check video-stream application:
$ cd podmigration-operator/config/samples/migration-example
$ kubectl apply -f 2.yaml
$ kubectl get pods
- Live-migrate video-stream application via api-server:
$ curl --request POST 'localhost:5000/Podmigrations' --header 'Content-Type: application/json' --data-raw '{"name":"test1", "replicas":1, "action":"live-migration", "sourcePod":"video", "destHost":"worker1"}'
$ curl --request GET 'localhost:5000/Podmigrations'
- Live-migrate video-stream application via kubectl apply:
$ kubectl apply -f test2.yaml
- Live-migrate video-stream application via kubectl migrate command:
- Note: As default, K8S doesn't have
kubectl migrate
andkubectl checkpoint
command. To use this extended kubectl plugin please check the guide at https://github.com/SSU-DCN/podmigration-operator/tree/main/kubectl-plugin
$ kubectl migrate video worker1
- To delete:
$ kubectl delete podmigration test2
$ kubectl delete -f test2.yaml
This operator is controller of Kuberntes Pod migration for Kubernetes. It needs several changes to work such as: kubelet, container-runtime-cri (containerd-cri). The modified vesions of Kuberntes and containerd-cri beside this operator can be found in the following repos: