Clone stack configurations from existing clusters or remote repositories. Perfect for replicating production setups to staging or dev environments.
Prerequisites
- Ankra CLI installed and configured
- A cluster configuration file (YAML)
Clone from a Local File
Copy stacks from an existing cluster configuration:Clone from GitHub
Pull configurations directly from a repository:Clone Options
| Flag | Description |
|---|---|
--clean | Replace all stacks in target (clean copy) |
--force | Override conflicts during merge |
--copy-missing | Copy missing files even from skipped stacks |
Example Workflow
Clone via UI
You can also clone stacks directly in the Ankra UI:- Navigate to Stacks in your cluster
- Click the menu on any stack
- Select Clone
- Edit the cloned stack as needed