Create The Template Variables

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

Estimated time: 6 minutes

Before the TEMPLATE job can render successfully, you need to create the variables expected by the template file in your copied repository.

The exact variable names depend on the template repository you chose, so this step uses the template file as the source of truth.

1. Inspect The Template File

Open the copied repository and locate the template file you configured in the previous step.

Review the file and note every variable the template expects.

Common examples include:

  • image or image tag;
  • service port;
  • replica count;
  • hostname;
  • namespace; and
  • environment labels.

2. Open Variables In Nomatron

  1. Open the template-demo app or the relevant scope.
  2. Go to Variables.
  3. Click New Variable.

3. Create The Required Variables

Create each variable the template expects.

Use shared scope for values that should apply everywhere, and environment-specific values for things that should differ between dev and staging.

4. Verify Against The Template

Before moving on, check that:

  • each required variable exists;
  • the names match the template exactly;
  • environment-specific values are attached to the correct environment; and
  • no required variable is still missing.