Boot Disks and Storage Disks

See here for background on Disks.

See here for the disks API reference

Creating a Boot Disk

Create a boot Disk by applying a YAML configuration:

$ cat bootdisk.yaml
apiVersion: compute.evroclabs.net/v1alpha1
kind: Disk
metadata:
  name: mybootdisk
spec:
  diskSize:
    amount: 100
    unit: GB
  diskImage:
    diskImageRef:
      name: ubuntu.24-04.1
  diskStorageClass:
    name: persistent

$ kubectl apply -f bootdisk.yaml
disk.compute.evroclabs.net/mybootdisk created

Creating a Storage Disk

You can also create additional storage Disks for use on your VM. Create a storage Disk with the following YAML configuration:

$ cat disk.yaml
apiVersion: compute.evroclabs.net/v1alpha1
kind: Disk
metadata:
  name: mydisk
spec:
  diskSize:
    amount: 100
    unit: GB
  diskStorageClass:
    name: persistent

$ kubectl apply -f disk.yaml
disk.compute.evroclabs.net/mydisk created