forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This just shows off the ability to define a VM with missing volume disks. For now we can't change the bus of the default disks that are generated thus this is a SATA based example using Cirros. This will likely be replaced in the future with a Flavor and Preferences based example that keeps the bus as virtio by default. Signed-off-by: Lee Yarwood <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-sata | ||
name: vm-cirros-sata | ||
spec: | ||
running: false | ||
template: | ||
metadata: | ||
labels: | ||
kubevirt.io/vm: vm-cirros-sata | ||
spec: | ||
domain: | ||
devices: {} | ||
resources: | ||
requests: | ||
memory: 128Mi | ||
terminationGracePeriodSeconds: 0 | ||
volumes: | ||
- containerDisk: | ||
image: registry:5000/kubevirt/cirros-container-disk-demo:devel | ||
name: containerdisk | ||
- cloudInitNoCloud: | ||
userData: | | ||
#!/bin/sh | ||
echo 'printed from cloud-init userdata' | ||
name: cloudinitdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters