Skip to content

projectsyn/commodore-component-tutorial

Repository files navigation

Getting Started with Commodore Components

This tutorial provides all the information required to create your first Commodore component. This tutorial can be found in the official Project Syn documentation.

Contents

The contents of the tutorial are in the docs/modules/ROOT/pages/index.adoc file. The scripts help encapsulate the knowledge required to spin up a Project Syn installation with at least 2 clusters.

The instructions of the tutorial guide the user to the creation and deployment of a simple component.

Requirements

The 0_requirements.sh script shows the current versions of all required software.

Podman instead of Docker

If you do not have Docker installed or would prefer to use Podman, kind is 100% compatible with Podman and has been successfully tested with this tutorial.

At the time of the last update of this document, k3d 5.5 is not compatible with Podman, despite what the documentation says.

Build PDF

Use the make pdf command to create a PDF file out of the source Asciidoc file in the build folder. This operation requires Docker.

Troubleshooting

Some users of Btrfs-on-LUKS have experimented issues with the tutorial. You might want to perform the following changes in that case.

  1. In 1_lieutenant_on_minikube.sh, line 12, use the following command to start Minikube: minikube start --disk-size 60g --cpus 4 --feature-gates="LocalStorageCapacityIsolation=false"

  2. In 4_synthesize_on_k3s.sh, replace line 22 k3d cluster create projectsyn with the following:

if [ -d /dev/mapper ]; then
k3d_extra_args="-v /dev/mapper:/dev/mapper"
else
k3d_extra_args=""
fi
k3d cluster create projectsyn ${k3d_extra_args}