Files
Marcel Richter e1beb5bcbd docs(talos): add README for image customization
Created `_packer/schematic.yaml` for defining image customization and `_packer/README.md` to guide on adding extensions to Talos images using the image factory.

Signed-off-by: Marcel Richter <mail@mrclrchtr.de>
2024-03-26 16:06:17 +01:00
..

Add Extension to tho Talos Image

You can use the image factory to achieve this. The image factory is a tool that allows you to create custom Talos images. You can find the documentation here.

You can also use the endpoint to generate images. To achieve this, you need to adjust the schematic.yaml file to include the extension you want to add to the image and then run the following command:

curl -X POST --data-binary @schematic.yaml https://factory.talos.dev/schematics

Then you can use the ID and the current Talos Version to get the image URLs with extensions:

  • https://factory.talos.dev/image/<ID>/<VERSION>/hcloud-amd64.raw.xz.
  • https://factory.talos.dev/image/<ID>/<VERSION>/hcloud-arm64.raw.xz.

Use these URLs in the talos-hcloud.pkr.hcl and replace image_arm and image_x86 to create the snapshots with the extensions.

You can create a file hcloud.auto.pkrvars.hcl to overwrite the default values. The file should look like this:

talos_version = "v1.6.7"
image_url_arm = "https://factory.talos.dev/image/376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba/v1.6.7/hcloud-arm64.raw.xz"
image_url_x86 = "https://factory.talos.dev/image/376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba/v1.6.7/hcloud-amd64.raw.xz"