Execution Unit
Execution Unit's configuration will be denoted by the static_unit
section in the klotho configuration file.
Each static unit has a configuration containing the following:
Field | Type | Description |
---|---|---|
type | string | (Optional) The type of service used to host the execution unit. |
network_placement | string | (Optional) The type of subnet the execution unit should reside in. Valid options are private and public . (default = private ) |
environment_variables | Map<string, string> | (Optional) A Map of key-value pairs, containing additional environment variables for the execution unit. |
pulumi_params | Object | (Optional) The parameters used to configure the pulumi iac. |
helm_chart_options | Object | (Optional) The parameters used to configure the pulumi iac. |
Type
The type specifies the location, where the static unit will be hosted. Type is provider specific. The following are valid types for static units.
- AWS
- GCP
- lambda
- ecs
- eks
caution
GCP hasn't been updated to v1 yet, so this is just a projection of what it may be.
Pulumi Params
The pulumi_params
field is dependent on the type specified for the static unit. To see a more detailed view of what can be specified, go to the page for the corresponding type.
Helm Chart Options
Helm options are intended to configure your execution unit to be deployed to your cluster as a helm chart.
By setting the install
field to true
, klotho will generate the proper manifests into the compiled/charts/
directory under the following chart name specified in the corresponding Chart.yaml
file.
Field | Type | Description |
---|---|---|
install | bool | (Optional) Whether or not helm will be used to install the execution unit. |
directory | string | (Optional) The directory where the helm chart exists. |
values_files | string[] | (Optional) The list of values files to be used when rendering the helm chart. |
To understand how directory
and values_file
are derived by klotho if not set, read our helm about.