Although Palette provides out-of-the box templates, we recommend that you create and manage your own templates.
- Valid YAML that defines your VM template.
Create a template by adding a YAML file as a manifest in an add-on profile.
- Log in to Palette.
- From the left Main Menu, click Profiles and click the Add Cluster Profile button.
- Give the profile a name, select type Add-on, and click Next.
- On the Profile Layers page, click Add Manifest.
- Give the layer a name, and click Edit manifest and enter a name for the first template. Click the checkmark icon.
- In the blank manifest file at right, enter the VM definition as a YAML file. You can add multiple manifests for multiple templates in the same add-on profile. They will display as layers in the profile.
- Click Confirm and Create, then click Next.
- Click Finish Configuration.
Example YAML for a VM template
apiVersion: spectrocloud.com/v1kind: VmTemplatemetadata:labels:app.kubernetes.io/name: fedora-36app.kubernetes.io/instance: fedora-36-instanceapp.kubernetes.io/part-of: vmtemplateapp.kubernetes.io/managed-by: kustomizeapp.kubernetes.io/created-by: vmtemplatename: fedora-36spec:description: This is Fedora 36 imagedisplayName: Fedora 36icon: "https://s3.amazonaws.com/manifests.spectrocloud.com/logos/fedora.png"running: falsetemplate:spec:domain:cpu:cores: 1devices:disks:- name: containerdiskdisk:bus: virtio- name: cloudinitdiskdisk:bus: virtiointerfaces:- name: defaultmasquerade: {}resources:requests:memory: 1Gicpu: 1limits:memory: 2Gicpu: 2networks:- name: defaultpod: {}volumes:- name: containerdiskcontainerDisk:image: gcr.io/spectro-images-public/release/vm-dashboard/os/fedora-container-disk:36- name: cloudinitdiskcloudInitNoCloud:# user name is fedorauserData: |#cloud-configssh_pwauth: Truechpasswd: { expire: False }password: spectrodisable_root: falsepackages:qemu-guest-agentruncmd:- ["sudo", "systemctl", "enable", "--now", "qemu-guest-agent"]
- Navigate to the left Main Menu and click Profiles.
- Verify your newly added manifest is listed.
Try applying the template to your cluster. Review Enable Spectro VM Dashboard to apply a profile to your cluster.