apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
labels:
kubevirt.io/vm: vm-istio
name: vm-istio
spec:
runStrategy: Always
template:
metadata:
labels:
kubevirt.io/vm: vm-istio
app: vm-istio (1)
annotations:
sidecar.istio.io/inject: "true" (2)
spec:
domain:
devices:
interfaces:
- name: default
masquerade: {} (3)
disks:
- disk:
bus: virtio
name: containerdisk
- disk:
bus: virtio
name: cloudinitdisk
resources:
requests:
memory: 1024M
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 180
volumes:
- containerDisk:
image: registry:5000/kubevirt/fedora-cloud-container-disk-demo:devel
name: containerdisk