apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
  creationTimestamp: null
  labels:
    kubevirt.io/vm: centos-stream-9
  name: centos-stream-9 
spec:
  dataVolumeTemplates:
  - metadata:
      creationTimestamp: null
      name: centos-dv 
    spec:
      storage:
        volumeMode: Block 
        resources:
          requests:
            storage: 10Gi
        storageClassName: ocs-storagecluster-ceph-rbd
      source: 
        # http:
          # url: "https://fedora.mirror.wearetriple.com/linux/releases/38/Cloud/x86_64/images/Fedora-Cloud-Base-38-1.6.x86_64.qcow2" 
          # To use a registry source, uncomment the following lines and delete the preceding HTTP source block
        registry:
          url: "docker://registry.poc4.ecocenter.fr:8443/init/oc-mirror-metadata/containerdisks/centos-stream:9"
          pullMethod: node
          # secretRef: pull-secret 
          # certConfigMap: user-ca-bundle
    status: {}
  running: true
  template:
    metadata:
      creationTimestamp: null
      labels:
        kubevirt.io/vm: centos-stream-9
    spec:
      domain:
        devices:
          disks:
          - disk:
              bus: virtio
            name: datavolumedisk1
        machine:
          type: ""
        resources:
          requests:
            memory: 1.5Gi
      terminationGracePeriodSeconds: 180
      volumes:
      - dataVolume:
          name: centos-dv
        name: datavolumedisk1