Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make examples runnable in parallel #774

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ After the VM boots, we can log into it and create a file on the root
filesystem:

```console
$ virtletctl ssh cirros@cirros-vm-p -- -i examples/vmkey
$ virtletctl ssh cirros@cirros-vm-pl -- -i examples/vmkey
...
$ echo foo >bar.txt
```
Expand All @@ -261,7 +261,7 @@ kubectl apply -f examples/cirros-vm-persistent-rootfs-local.yaml
After logging into the new VM pod, we see that the file is still
there:
```console
$ virtletctl ssh cirros@cirros-vm-p -- -i examples/vmkey
$ virtletctl ssh cirros@cirros-vm-pl -- -i examples/vmkey
...
$ cat bar.txt
foo
Expand All @@ -280,4 +280,5 @@ kubectl apply -f examples/cirros-vm-persistent-rootfs-rbd.yaml
```

After that, you can verify that the persistent rootfs indeed works
using the same approach as with local PVs.
using the same approach as with local PVs, but using name `cirros-vm-pr`
in place of `cirros-vm-pl`.
2 changes: 1 addition & 1 deletion examples/cirros-vm-persistent-rootfs-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
apiVersion: v1
kind: Pod
metadata:
name: cirros-vm-p
name: cirros-vm-pl
annotations:
kubernetes.io/target-runtime: virtlet.cloud
# CirrOS doesn't load nocloud data from SCSI CD-ROM for some reason
Expand Down
2 changes: 1 addition & 1 deletion examples/cirros-vm-persistent-rootfs-rbd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
apiVersion: v1
kind: Pod
metadata:
name: cirros-vm-p
name: cirros-vm-pr
annotations:
kubernetes.io/target-runtime: virtlet.cloud
# CirrOS doesn't load nocloud data from SCSI CD-ROM for some reason
Expand Down
2 changes: 1 addition & 1 deletion examples/cirros-vm-raw-device.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: cirros-vm
name: cirros-vm-raw-device
annotations:
kubernetes.io/target-runtime: virtlet.cloud
spec:
Expand Down
2 changes: 1 addition & 1 deletion examples/ubuntu-multi-cni.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-vm
name: ubuntu-multi-cni
annotations:
multi-ip-preferences: |
{
Expand Down
2 changes: 1 addition & 1 deletion examples/ubuntu-vm-local-block-pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-vm
name: ubuntu-vm-local-block-pv
annotations:
kubernetes.io/target-runtime: virtlet.cloud
VirtletSSHKeys: |
Expand Down
2 changes: 1 addition & 1 deletion examples/ubuntu-vm-rbd-block-pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-vm
name: ubuntu-vm-rdb-block-pv
annotations:
kubernetes.io/target-runtime: virtlet.cloud
VirtletSSHKeys: |
Expand Down