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 19, 2021
1 parent 83c13c9 commit baff3f6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,20 @@ $ cd podmigration-operator/config/samples
$ kubectl apply -f 2.yaml
$ kubectl get pods
```
* Live-migrate video-stream application via api-server:
#### There are three options to live-migrate a running Pod as following:
1. 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:
2. Live-migrate video-stream application via kubectl apply:
```
$ kubectl apply -f test2.yaml
```
3. Live-migrate video-stream application via kubectl migrate command:
```
$ kubectl migrate video worker1
```
* To delete:
```
$ kubectl delete podmigration test2
Expand Down

0 comments on commit baff3f6

Please sign in to comment.