Skip to content

Instantly share code, notes, and snippets.

@rmohr
Created September 19, 2019 08:44
Show Gist options
  • Save rmohr/f1c8acaed878993e63dbb953cb7ccf96 to your computer and use it in GitHub Desktop.
Save rmohr/f1c8acaed878993e63dbb953cb7ccf96 to your computer and use it in GitHub Desktop.
fixed mac on bridge network
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
name: vmi-nocloud1
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: containerdisk
- disk:
bus: virtio
name: cloudinitdisk
- disk:
bus: virtio
name: emptydisk
interfaces:
- bridge: {}
macAddress: "fe:22:5b:13:d0:01"
name: default
features:
acpi:
enabled: true
firmware:
uuid: 44c8ae7d-7e8a-4d5b-8bf6-319386af45e7
machine:
type: q35
resources:
requests:
cpu: 100m
memory: 64M
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 0
volumes:
- containerDisk:
image: localhost:5000/kubevirt/cirros-container-disk-demo:devel
imagePullPolicy: IfNotPresent
name: containerdisk
- cloudInitNoCloud:
userData: |
#!/bin/sh
echo 'printed from cloud-init userdata'
name: cloudinitdisk
- emptyDisk:
capacity: 2Gi
name: emptydisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment