Skip to content

Commit

Permalink
Add notes about using different image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Apr 4, 2018
1 parent e810009 commit 8196fff
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,25 @@ In case if you're using Mac OS X, you need to use this command instead:
curl -SL -o virtletctl https://github.com/Mirantis/virtlet/releases/download/vN.N.N/virtletctl.darwin
chmod +x virtletctl
```
If you want to use the latest image, you can build virtletctl yourself from the source:
```
git clone https://github.com/Mirantis/virtlet.git
cd virtlet
build/cmd.sh build && build/cmd.sh copy
# Replace _ou_output/virtletctl with _output/virtletctl.darwin for Mac OS X below
cp _output/virtletctl /usr/local/bin
```
Another way is to use the latest released virtletctl with `--tag latest`, see below.
1. Deploy Virtlet DaemonSet and related objects:
```
./virtletctl gen | kubectl apply -f -
```
If you want to override the image tag to use:
```
./virtletctl gen --tag latest | kubectl apply -f -
```
Note thought that it'll only work if the generated yaml didn't change between
virtletctl version and the image tag you specified, so your mileage may vary.
1. Wait for Virtlet pod to activate:
```
kubectl get pods -w -n kube-system
Expand Down
17 changes: 17 additions & 0 deletions deploy/real-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,28 @@ In case if you're using Mac OS X, you need to use this command instead:
curl -SL -o virtletctl https://github.com/Mirantis/virtlet/releases/download/vN.N.N/virtletctl.darwin
```

If you want to use the latest image, you can build virtletctl yourself from the source:
```
git clone https://github.com/Mirantis/virtlet.git
cd virtlet
build/cmd.sh build && build/cmd.sh copy
# Replace _ou_output/virtletctl with _output/virtletctl.darwin for Mac OS X below
cp _output/virtletctl /usr/local/bin
```
Another way is to use the latest released virtletctl with `--tag latest`, see below.

Then you can deploy Virtlet:
```bash
./virtletctl gen | kubectl apply -f -
```

If you want to override the image tag to use:
```
./virtletctl gen --tag latest | kubectl apply -f -
```
Note thought that it'll only work if the generated yaml didn't change between
virtletctl version and the image tag you specified, so your mileage may vary.

By default it has KVM enabled, but you can configure Virtlet to
disable it. In order to do so, create a configmap named
`virtlet-config` in `kube-system` prior to creating Virtlet DaemonSet
Expand Down

0 comments on commit 8196fff

Please sign in to comment.