Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kubectl get vms output (kubevirt)
apiVersion: kubevirt.io/v1alpha2
kind: VirtualMachine
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"kubevirt.io/v1alpha2","kind":"VirtualMachine","metadata":{"annotations":{},"name":"testvm","namespace":"default"},"spec":{"running":false,"template":{"metadata":{"labels":{"kubevirt.io/domain":"testvm","kubevirt.io/size":"small"}},"spec":{"domain":{"devices":{"disks":[{"disk":{"bus":"virtio"},"name":"containerdisk","volumeName":"containervolume"},{"disk":{"bus":"virtio"},"name":"cloudinitdisk","volumeName":"cloudinitvolume"}],"interfaces":[{"bridge":{},"name":"default"}]},"resources":{"requests":{"memory":"64M"}}},"networks":[{"name":"default","pod":{}}],"volumes":[{"containerDisk":{"image":"kubevirt/cirros-registry-disk-demo"},"name":"containervolume"},{"cloudInitNoCloud":{"userDataBase64":"SGkuXG4="},"name":"cloudinitvolume"}]}}}}
creationTimestamp: 2019-01-09T00:47:00Z
generation: 1
name: testvm
namespace: default
resourceVersion: "1869"
selfLink: /apis/kubevirt.io/v1alpha2/namespaces/default/virtualmachines/testvm
uid: 1325b441-13a8-11e9-b349-080027ae4357
spec:
running: true
template:
metadata:
creationTimestamp: null
labels:
kubevirt.io/domain: testvm
kubevirt.io/size: small
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: containerdisk
volumeName: containervolume
- disk:
bus: virtio
name: cloudinitdisk
volumeName: cloudinitvolume
interfaces:
- bridge: {}
name: default
machine:
type: ""
resources:
requests:
memory: 64M
networks:
- name: default
pod: {}
volumes:
- containerDisk:
image: kubevirt/cirros-registry-disk-demo
name: containervolume
- cloudInitNoCloud:
userDataBase64: SGkuXG4=
name: cloudinitvolume
status:
created: true
ready: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.