Environments Menu
Kubeark Infrastructure

Templates (Infrastructure)

3min

Overview

Infrastructure Templates are Terraform-centric. Beyond the realm of Kubernetes, the Infrastructure templates expand deep into the broader architecture of infrastructure management and provisioning. 

These templates, specifically tailored for Terraform, act as scripts or blueprints for defining and provisioning your infrastructure resources. They cater to tasks like provisioning virtual machines, setting up networks, orchestrating storage solutions, and more. With Terraform's declarative language and Infrastructure-as-Code (IaC) capabilities, these templates ensure that infrastructure is consistently and reliably provisioned, managed, and scaled.

How to create an infrastructure template?

Step1 - Access the Templates menu: Start by navigating to the Environments section, under Infrastructure.

Step2 - Initiate template creation: Once inside the Templates menu, locate and click on the "create template" button

Document image


Step3 - Template Creation Page: You will now be taken to the template creation page, a dedicated space where you can specify various details for your new infrastructure template.

Document image


Argument

Description

Name

Provide a descriptive and unique name for your template

Description

Offer a brief summary or explanation about the template's purpose or characteristics

Owner

Specify the owner responsible entity for this template

Configuration archive

This option allows you to load a custom configuration. Click on the provided space or button to upload your custom configuration. Ensure that the configuration file is in the acceptable formats—either a gzip or tar archive.

Cofiguration text

Allows for manual input of arguments

Tags

Add a custom tag to reference your template

Environment action

This argument allows adding business logic for the environments lifecycle, and can be defined through: -> Terminate - This is when the environment is terminated when the default timeand grace time reaches 0 seconds-> Manual - Manual trigger

Default time

The default expiration time when the action is triggered

Grace time 

The grace time to wait after the default time for the environment action to be triggered.

Input variables

Variables are used to generate random data. You can use them in the values field of the extra arguments section. You can combine them with other values.For example, {{set_string}}-test the result will be a random string followed by the word test. You can also use them in a payload from a value of extra arguments, combined with other values or predefined variables.The following predefined variable categories are available:-> Infra-> User-> FunctionAdditional parameters can also be added, the platform supporting various formats such as string, numeric, JSON, Code, List or Boolean

Configuration archive
Configuration archive


Step 4 - Finalize Creation: After filling out all the relevant information, review your entries for accuracy. Once satisfied, click on the Create button to finalize the creation of your infrastructure template.

Document image