Skip to main content
Version: v3.9.0

Application template fields

Reference for kind: ApplicationTemplate. How to deploy and instantiate a template is on Application templates.

The CLI parses spec in non-strict mode. Prefer the fields below. Extra keys may be ignored.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: ApplicationTemplate # required, string
metadata:
name: my-template # required, string. Lowercase alphanumeric
namespace: my-ecn # no, string. Must match -n when both are set
spec:
name: my-template # no, string
description: Example template # no, string
variables: # no, list
- key: agent-name # string
description: Edgelet node name # string
defaultValue: edge-01 # any
value: edge-01 # any
application: # no, object. Nested application spec
microservices: []
natsConfig:
natsAccess: false

metadata.name is required. Use lowercase alphanumeric characters. metadata.namespace, when set, must match -n.

Spec​

FieldTypeDescription
namestringOptional copy of metadata.name.
descriptionstringOperator-facing summary.
variableslistTemplate parameters.
variables[].keystringVariable name referenced in the nested YAML.
variables[].descriptionstringHelp text.
variables[].defaultValueanyJSON-compatible default (scalar or object) used when an application deploy omits that variable.
variables[].valueanyOptional fixed value when the application does not override it.
applicationobjectNested application spec: microservices, natsConfig, and the other application fields.

Quote placeholders in application, for example "{{agent-name}}". The Controller substitutes them when Application.spec.template supplies variables.

An application passes overrides as a list of {key, value} or as a map. See Application fields.

Create and update​

CreateUpdate
TriggerThe template name is not on the Controller.The same metadata.name is deployed again.
ActionCreate from YAML.Update from YAML.

Updating the template does not redeploy applications already created from it.

Group 3See anything wrong with the document? Help us improve it!