Skip to content

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.

apiVersion: tdengine.taosdata.com/v1
kind: Deployment
metadata:
name: all-in-one
spec:
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: auto

Use 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.

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.

spec:
release:
profile: all-in-one
channel: stable

Roles 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.

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: apex

SSH 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.

  • packages selects initial packages for independent-package components.
  • depends names another node that this role depends on.
  • envFile reads 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.
  • optionalResources enables optional resources declared by the Component Manifest.
  • spec.templates assigns 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.