Deployment YAML reference
Deployment YAML describes where to deploy and which components to install. Component Manifests provide the installation details; users normally only need to maintain Deployment files.
Minimal single-node example
Section titled “Minimal single-node example”apiVersion: tdengine.taosdata.com/v1kind: Deploymentmetadata: name: all-in-onespec: release: profile: all-in-one channel: stable nodes: - name: node1 transport: local host: localhost platform: linux-x64 roles: - id: node1-tsdb component: tsdb version: auto - id: node1-idmp component: idmp version: auto - id: node1-tdgpt component: tdgpt version: autoUse transport: local for a single-node installation on the Apex host; it does not require an SSH server. Remote nodes use transport: ssh (the default) and need a reachable host and credentials.
Common fields
Section titled “Common fields”| Field | Required | Description |
|---|---|---|
apiVersion |
Yes | Currently tdengine.taosdata.com/v1. |
kind |
Yes | Must be Deployment. |
metadata.name |
Yes | Name of the Deployment. |
spec.nodes |
Yes | List of target nodes. |
nodes[].name |
Yes | Unique node identifier within the Deployment. |
nodes[].host |
For SSH nodes | Target host address; unused for local nodes. |
nodes[].transport |
No | local or ssh; defaults to ssh. |
nodes[].platform |
Yes | Target platform, e.g. linux-x64, linux-arm64, or windows-x64. |
nodes[].roles |
Yes | Component roles to deploy on this node. |
roles[].id |
Recommended | Unique role name within the Deployment. |
roles[].component |
Yes | Component ID such as tsdb, idmp, or tdgpt. |
roles[].version |
Yes | Exact version, or auto when spec.release is configured. |
roles[].installMode |
No | compact or full when supported. |
roles[].optionalResources |
No | Optional resource IDs enabled for the role. |
spec.apexDir |
No | Apex work directory on each target node. |
spec.release |
With dynamic versions | Version Catalog profile and channel. |
spec.postDeploy |
No | Node commands that run after all components are deployed. |
When omitted, spec.apexDir defaults to $HOME/.apex for the target user on Linux/macOS and C:\ProgramData\TDengine\Apex on Windows. A custom controller Apex Home does not automatically change the target default.
Dynamic versions
Section titled “Dynamic versions”spec: release: profile: all-in-one channel: stableRoles can then use version: auto. validate resolves exact versions and emits a Resolved Deployment. Pass that output to prepare and apply so the same versions are used throughout one deployment. Pin component versions directly when production deployments require strict reproducibility.
SSH settings
Section titled “SSH settings”Set SSH defaults under spec.ssh, then override individual nodes under nodes[].ssh:
spec: ssh: user: deploy port: 22 privateKey: ~/.ssh/id_ed25519 strictHostKeyChecking: true nodes: - name: node1 host: 192.0.2.10 platform: linux-x64 transport: ssh roles: [] ssh: user: apexSSH fields not set on a node inherit the global values. Prefer private keys or controlled credential injection; never commit real passwords. strictHostKeyChecking enables strict host-key verification.
Additional role options
Section titled “Additional role options”packagesselects initial packages for independent-package components.dependsnames another node that this role depends on.envFilereads role-specific variables from the controller’s<apex_home>/conf/; the contents are not written to command evidence. This file is not automatically copied to the target.optionalResourcesenables optional resources declared by the Component Manifest.spec.templatesassigns configuration template paths to components.
validate checks Deployment fields. Start from a Deployment example in the release package, then run validation commands and --dry-run to review the plan.