Skip to content

Instantly share code, notes, and snippets.

@acsulli
Created October 13, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acsulli/69261af8ae016e484deda76bacc52e97 to your computer and use it in GitHub Desktop.
Save acsulli/69261af8ae016e484deda76bacc52e97 to your computer and use it in GitHub Desktop.
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
annotations:
kubevirt.io/latest-observed-api-version: v1alpha3
kubevirt.io/storage-observed-api-version: v1alpha3
name.os.template.kubevirt.io/silverblue32: Fedora 31 or higher
name: fedora
labels:
app: fedora
os.template.kubevirt.io/silverblue32: 'true'
workload.template.kubevirt.io/desktop: 'true'
spec:
dataVolumeTemplates:
- apiVersion: cdi.kubevirt.io/v1alpha1
kind: DataVolume
metadata:
creationTimestamp: null
name: fedora-rootdisk
spec:
pvc:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
volumeMode: Filesystem
source:
http:
url: >-
https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.qcow2
status: {}
running: false
template:
metadata:
creationTimestamp: null
labels:
vm.kubevirt.io/name: fedora
workload.template.kubevirt.io/desktop: 'true'
spec:
domain:
cpu:
cores: 1
sockets: 1
threads: 1
devices:
disks:
- bootOrder: 1
disk:
bus: virtio
name: rootdisk
- disk:
bus: virtio
name: cloudinitdisk
inputs:
- bus: virtio
name: tablet
type: tablet
interfaces:
- masquerade: {}
model: virtio
name: nic-0
networkInterfaceMultiqueue: true
rng: {}
machine:
type: pc-q35-rhel8.2.0
resources:
requests:
memory: 1Gi
evictionStrategy: LiveMigrate
hostname: fedora
networks:
- name: nic-0
pod: {}
terminationGracePeriodSeconds: 180
volumes:
- dataVolume:
name: fedora-rootdisk
name: rootdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
password: redhat
chpasswd: { expire: False }
name: cloudinitdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment