| apiVersion: pool.kubevirt.io/v1alpha1 |
| kind: VirtualMachinePool |
| metadata: |
| name: cirros-pool |
| spec: |
| replicas: 3 |
| selector: |
| matchLabels: |
| kubevirt.io/vmpool: cirros-pool |
| virtualMachineTemplate: |
| metadata: |
| labels: |
| kubevirt.io/vmpool: cirros-pool |
| spec: |
| running: true |
| template: |
| metadata: |
| labels: |
| kubevirt.io/vm: cirros-pool |
| kubevirt.io/vmpool: cirros-pool |
| spec: |
| domain: |
| devices: |
| disks: |
| - disk: |
| bus: virtio |
| name: containerdisk |
| - disk: |
| bus: virtio |
| name: cloudinitdisk |
| resources: |
| requests: |
| memory: 128Mi |
| cpu: 1000m |
| limits: |
| memory: 256Mi |
| cpu: 2000m |
| terminationGracePeriodSeconds: 0 |
| volumes: |
| - containerDisk: |
| image: docker.io/jumpojoy/kubevirt-cirros:0.6.2 |
| name: containerdisk |
| - cloudInitNoCloud: |
| userData: | |
| #!/bin/sh |
| echo 'printed from cloud-init userdata' |
| name: cloudinitdisk |