Introduction
Custom configuration allows you to define a set of variables in an edge app definition that users fill in when deploying an application instance. This lets a single edge app serve multiple deployment environments (for example, production, staging, and development) by accepting environment-specific values at deploy time, without modifying the underlying image. Custom configuration works through a two-step process:- At the edge app level (My Library): define the configuration template and the variable groups that describe what values are needed.
- At the application instance level (Deploy): supply values for those variables when creating the instance. Edge Infrastructure Services passes the completed configuration to EVE-OS (Edge Virtualization Engine), which delivers it to the application through the cloud-init mechanism.
Define Custom Configuration on an Edge App
Custom configuration is defined in the edge app creation wizard or by editing an existing edge app.In the creation wizard
- In the sidebar, select My Library.
- Click the + floating action button (tooltip: “Create Edge App”).
- Select the app type and complete the Identity, Features & Sizing, and Interfaces steps.
- In the Configurations step, enable the “Include custom configuration template” toggle.
- Enter a Configuration Name.
- Configure the Allow Override setting as needed.
- Enable Configure Variable Groups to add variables to the template.
- Complete the remaining steps and click Add Edge App.
In the configuration dialog
- In the sidebar, select My Library and open the edge app.
- Click the Configure (gear) icon.
- In the left navigation, select App Settings > Configuration.
- Enable the Custom Configuration toggle if it is not already on.
- Add or edit variable groups and variables.
- Click Save.
Custom Configuration Concepts
Variable groups
A variable group is a named collection of related variables. Groups appear as sections in the instance creation wizard. A group can have a name, a description, and an optional condition that controls whether the group is shown based on the value of another variable.Variables
Each variable in a group has the following properties:Configuration template
The configuration template is the cloud-init script or configuration content that Edge Infrastructure Services delivers to the instance at deploy time. Variable names enclosed in the configured delimiter are replaced with the values the user provides. For example, if the field delimiter is###, a variable named SERVER_URL appears in the template as ###SERVER_URL###.
Supply Custom Configuration Values When Deploying
The Custom Config step appears in the application instance creation wizard when the selected app image includes a custom configuration template.- Navigate to Infrastructure > Workloads > Applications.
- Select the contextual + create action.
- Select the app image with custom configuration defined.
- Complete the App & Target and Interfaces steps.
- In the Custom Config step, fill in values for each variable shown.
- Required variables are marked with an asterisk.
- Password variables mask the input.
- Dropdown variables show a predefined list of options.
- Boolean variables show a toggle.
- Conditional variable groups appear or are hidden based on the values of other variables in the same group.
- Click Next to proceed.
View Custom Configuration on a Running Instance
- Navigate to Infrastructure > Workloads > Applications and open the application instance.
- Click the Custom Configuration tab.
- The tab shows the current configuration values, whether override is allowed, and the field delimiter.
Update Custom Configuration
Custom configuration updates depend on the variables and the app image configuration:- If the app image allows override, you can update variable values by clicking the Configure (gear) icon on the instance detail page. Changes that require a restart or reactivation apply when the instance is next restarted.
- If the variable groups themselves have changed in the app image (for example, new variables added or existing ones removed), the changes do not automatically propagate to existing instances. To apply updated variable groups, delete the instance and redeploy it with the updated configuration.
Example: Site-specific URL variable
An edge app for an IoT data collector needs to point to a different server URL in each deployment site.- In the edge app’s Configurations step, define a variable group named “Connection Settings” with a Text variable named
COLLECTOR_URL(label: “Collector Server URL”, required: true). - In the configuration template, include the line:
COLLECTOR_URL=###COLLECTOR_URL### - When deploying an instance to Site A, enter
https://site-a.example.comfor the Collector Server URL variable. - When deploying to Site B, enter
https://site-b.example.com.
Next Steps
Add Environment Variables to Applications
How to pass environment variables to container instances using custom configuration.
Deploy an Application Instance
The full deployment wizard walkthrough.