Learn how to clone one or multiple stacks from one cluster to another - including across organisations - for consistent deployments across environments
Cloning stacks allows you to replicate your infrastructure configurations across multiple clusters - even across different organisations. You can clone a single stack or select multiple stacks at once. With Deploy on the target after cloning left on, a cloned stack deploys on the target straight away; turn it off to keep the clone as a draft for review first. A stack whose encrypted values had to be removed is always held as a draft, marked Needs input, until you re-enter them.
Cloning a Stack Between Clusters
AI Prompts
Use these prompts with the AI Assistant (Cmd+J) to clone stacks with natural language.
Replicate your monitoring stack across all clusters
Create templates
Use a well-configured stack as a starting point for new clusters
Keep a standby ready
Run the same configuration on a second cluster, ready to take over
Cross-org sharing
Clone a stack from a development org to a client or production org
Replicate entire clusters
Select all stacks and clone them to a new cluster in one operation
By default a clone copies configuration only, and it reads the live source. A clone reproduces the stack’s definition on the target; persistent volumes and database contents stay where they are unless you add them with the Data step in the dialog or --with-data on the CLI. Cloning with data needs a backup vault. It also needs the source cluster to be readable, so it is not a disaster-recovery mechanism - for that, protect the stack and restore a restore point.
Security Note: Encrypted values (secrets) are not transferred during cloning for security reasons. You’ll need to reconfigure them in the target cluster. This includes passwords, API keys, and any values encrypted with SOPS. A stripped Secret is still a valid Kubernetes object - each cleared key holds the ENCRYPTED_VALUE_REMOVED placeholder (base64-encoded under data) so the draft deploys and the workload fails clearly on the placeholder rather than the apply failing on the manifest.
Go to your source cluster and navigate to Stacks. Find the stack you want to clone.
2
Open Clone Dialog
Click the menu icon (three dots) on the stack card and select Clone to Cluster.
3
Target
On the Target step:
If you belong to multiple organisations, select the target organisation. The cluster list updates to show clusters in that organisation.
Choose the destination cluster.
Optionally change the Stack name.
If your stack contains encrypted values, a warning says they do not travel. For a cross-organisation clone, a banner says you are taken to the target organisation once the copy is made.
4
Data (optional)
A Data step lets you carry the stack’s volumes and database contents as well, through a backup vault.
5
Review
Check the summary. Include addon configurations copies the Helm values and settings of every add-on. Deploy on the target after cloning is on by default; turn it off to keep the clone as a draft.
6
Clone the Stack
Click Clone stack. A deployed clone takes you to the running stack on the target; a clone that needs input opens its draft in the builder, with a banner naming the values to re-enter. If you cloned to a different organisation, Ankra automatically switches your active organisation.
7
Finish on the target
If the clone was held as a draft (you turned deploy off, or encrypted values had to be removed), add any missing secrets, adjust cluster-specific settings, and deploy it from the builder.
You can select multiple stacks and clone them all to another cluster in a single operation. Each stack is created as a separate draft on the target cluster.
1
Select Stacks
On the Stacks page, click any stack card’s avatar (the colored circle) to start selecting. Click additional avatars to add more stacks to your selection.Alternatively, click the Clone Stacks button to the left of the search bar - this selects all stacks on the page.
2
Open the Clone Dialog
With stacks selected, a floating action bar appears at the bottom of the screen showing the count. Click Clone to Cluster in the bar, or click the Clone N Stacks button next to the search bar.
3
Choose a Target
In the dialog:
Select the target organisation (if you belong to multiple)
Choose the destination cluster
Toggle whether to include addon configurations
The dialog shows a list of all selected stacks as tags.
4
Clone
Click Clone N Stacks. Each stack is cloned sequentially - you’ll see a progress bar and each stack tag turns green on success. Name conflicts are auto-resolved with suffixes (e.g. -copy).
5
Navigate to Target
The summary says how many stacks are deploying and how many were held for your input, with a link into each held draft’s builder tab. Click Go to Target Cluster to watch them come up.
Multi-stack cloning is useful for replicating an entire cluster’s configuration. Select all stacks and clone to a new cluster; the ones without secrets deploy on their own, and the Needs input chip on the stack list shows which are waiting for you.
Deploy the clone on the target (default: false, so the CLI creates a draft)
--with-data
Carry the stack’s data through a restore point (needs a backup vault)
This table covers the common flags. --deploy, --with-data and the data flags need CLI v0.18.0 or later; see the CLI reference for --from, --vault, --wait and the rest.
The CLI and the dashboard have opposite defaults: the dashboard deploys the clone unless you turn Deploy on the target after cloning off, while ankra cluster stacks clone creates a draft unless you pass --deploy.
Cloning stack 'monitoring-stack' to cluster 'production'...Stack cloned successfully! Draft ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890 Stack Name: monitoring-stack Addons: 3 Manifests: 2 Applications: 1Warnings: - Addon 'grafana' had encrypted configuration that needs to be reconfigured. - Cluster variable 'db_host' was copied from the source cluster onto the cloned stack; review its value for the target cluster. - Manifest 'prometheus' pins scheduling to nodes labelled purpose=monitoring - make sure the target cluster has matching nodes. - Deploy check for addon 'grafana': registry 'bitnami' is not connected in this organisation.The stack has been created as a draft. Open the Ankra dashboard to review and deploy.
The clone runs the checks a deploy would, and reports what it finds as warnings rather than refusing - a clone never fails on them:
Variables: a ${{ ankra.* }} token the target cannot resolve is named, and a same-organisation clone copies the source cluster’s value onto the stack so the manifest does not deploy the literal token.
Node pinning: manifests and applications whose nodeSelector targets labels the target may not have.
SOPS readiness: encrypted paths that survived the strip, on a target with no deployed SOPS key.
Chart references: registries not connected in the target organisation, and charts or versions the catalog does not know.
Ankra supports cloning stacks to clusters that belong to a different organisation. This is useful for sharing configurations with clients, replicating setups from a template org to a production org, or migrating workloads.
Credentials and secrets don’t transfer across organisations. Each organisation has its own SOPS keys, registry credentials, and secrets. After a cross-org clone you must reconfigure:
Encrypted values in manifests and addon configs
Registry credentials if images are in private registries
Any organisation-specific variables referenced by the stack
Organisation and cluster variables are scoped to their organisation, and no variable value crosses that boundary. A cross-organisation clone names every ${{ ankra.* }} reference it could not resolve in its warnings - define those variables in the target organisation or on the target cluster before deploying.
When you clone a stack that contains encrypted values:
Manifests: Encrypted fields are replaced with the ENCRYPTED_VALUE_REMOVED placeholder
Addon configurations: Encrypted values are replaced with the same placeholder
Held as a draft: the stack is not deployed; the clone result, the Needs input chip on the stack card and a banner in the builder name each member and field to re-enter, and the banner links straight to it
Re-encrypting Secrets After Clone
After cloning, you’ll need to re-encrypt secrets for the target cluster:
Open the cloned draft in the target cluster
Navigate to each manifest or addon that had encrypted values
Enter the new secret values
List the keys under Encrypted Keys (SOPS) so they are sealed with the target organisation’s key
Save and deploy
The SOPS key pair belongs to the organisation, not to a cluster. Clusters in the same organisation share it, so a value sealed for one can be decrypted by another. A clone into a different organisation cannot decrypt the source’s values - this is by design for security.
Automating Secret Configuration
For automated deployments, consider:
Using external secrets management (e.g., Vault, AWS Secrets Manager)
Storing secrets in environment-specific configuration
# Test in staging firstankra cluster select stagingankra cluster stacks list# Clone to production when readyankra cluster stacks clone my-app-stack --to production# Switch to production and configure secretsankra cluster select production# ... configure in dashboard
Standardizing Multiple Clusters
Clone your standard monitoring stack to all clusters:
ankra cluster select template-clusterfor cluster in dev staging production; do ankra cluster stacks clone observability --to $cluster --name observability echo "Cloned to $cluster"done
Creating a Backup Configuration
# Clone critical stacks to a DR clusterankra cluster select primaryankra cluster stacks clone core-services --to dr-clusterankra cluster stacks clone monitoring --to dr-clusterankra cluster stacks clone ingress --to dr-cluster
Replicate All Stacks to a New Cluster
In the dashboard:
Go to Stacks in your source cluster
Click the Clone Stacks button next to the search bar - all stacks are selected
Click Clone to Cluster in the floating action bar
Choose your target cluster and click Clone
All stacks are created as drafts on the target - review and deploy each one
With the CLI:
ankra cluster select source-clusterankra cluster stacks list # note the stack names# Clone each stack to the new clusterfor stack in monitoring ingress app-data; do ankra cluster stacks clone "$stack" --to new-clusterdone
Sharing a Stack with Another Organisation
Clone a well-tested stack to a client or partner organisation from the dashboard: select the target organisation in the clone dialog’s Target step. After cloning, Ankra switches you to the target organisation automatically, where the stack’s secrets can be added.
Ensure the source stack is deployed (not just a draft) and you have the correct stack name:
ankra cluster stacks list
Clone Failed: Access Denied
Verify you have access to both the source and target clusters. You must be a member of both clusters’ organizations.
Clone Failed: Target Cluster Unavailable
The clone operation only creates a draft in the database - it doesn’t require the target cluster to be online. Check your network connection to the Ankra API.
Missing Resources After Clone
If addons or manifests are missing:
Check if the source stack had resources in a deleting or deleted state
Verify the clone included addon configurations (--include-config=true)
Check the warnings for any resources that couldn’t be cloned