Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vutuong authored Jan 18, 2021
1 parent b07d195 commit 74eb21f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,26 @@ make run
```
go run ./api-server/cmd/main.go
```
* To test create Pod by calling Api-server:
## Test live-migrate pod:
* Run/check video-stream application:
```
curl --request POST 'localhost:5000/Podmigrations' --header 'Content-Type: application/json' --data-raw '{"name":"mig61"}'
curl --request GET 'localhost:5000/Podmigrations'
$ cd podmigration-operator/config/samples
$ 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:
```
$ kubectl apply -f test2.yaml
```
* To delete:
```
$ kubectl delete podmigration test2
$ kubectl delete -f test2.yaml
```
## Note
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:
Expand Down

0 comments on commit 74eb21f

Please sign in to comment.