canasta sidecar add
From canasta
canasta sidecar add
Add app sidecar(s) to config/sidecars.yaml from a YAML file
Synopsis
Declare app sidecar(s) in config/sidecars.yaml from a YAML file of full definitions — a single sidecar mapping, a list, or a sidecars: list — then run canasta restart to deploy them. The file uses the orchestrator-agnostic sidecar schema (name, image/build, ports, command, env, volumes, files, depends_on, healthcheck, resources), so it renders identically on Compose and Kubernetes.
To migrate an existing docker-compose.override.yml, use canasta sidecar migrate instead, which translates its sidecar services into this schema.
canasta sidecar add [flags]
Examples
canasta sidecar add -i mywiki --file sidecars.yaml
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--file |
-f |
Path to a YAML file of full sidecar definition(s) (the orchestrator-agnostic sidecar schema) | ✓ | Both | |
--id |
-i |
Canasta instance ID | * | Both | |
--path |
-p |
Path to the Canasta instance directory | Both |
* Defaults to the Canasta instance matching the current directory, if any.
Global flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |