Skip to main content
Version: main 🚧

Use a Stack

A Stack deploys a group of applications to one cluster or control plane cluster. The StackTemplate controls dependencies, health gates, parameters, and values shared between tasks.

Use an App for one independently managed application. Use a Stack when several applications need ordering, health gates, or values from earlier tasks.

Understand licensing​

Stacks don't have a separate license feature. App tasks use the Apps feature, and Argo CD Application tasks use the Argo CD Integration feature. Both are available on every plan, including the free plan.

If a task isn't licensed, the StackInstance is blocked with the FeatureNotAllowed reason.

Choose how to install a Stack​

You can install a Stack three ways:

  • From the destination's Stacks tab, to add a Stack to a cluster or control plane cluster that already exists.
  • During cluster creation, when the Stack should exist from the start.
  • Through vcluster.yaml, when you manage the cluster's configuration declaratively, such as through GitOps.

Install a Stack from the destination it deploys to. The Stacks tab appears on a cluster when you can list StackInstances in its project. On a control plane cluster, the tab appears only when the Argo CD Integration feature is enabled.

Before you install, check these requirements:

  • Permissions. The default Project Admin role can install Stacks. The default Project User role can't, so project users don't see the Stacks tab unless a custom project role grants StackInstance permissions. See Stack permissions.
  • Allowed templates. The project's allowed templates must include the StackTemplate, or * for every StackTemplate. The template list doesn't filter by this setting, so a template the project doesn't allow is rejected only when you install it.
  • Destination access. Both you and the StackInstance owner need access to the destination. A control plane cluster must also be in the project's allowed clusters.
  • Published outputs. Reading published output values requires get on the stackinstances/outputs subresource.
  1. Open the destination cluster or control plane cluster, and select its Stacks tab.

  2. Click .

  3. For a control plane cluster, select the project that owns the StackInstance.

  4. In Stack Template, select a StackTemplate. Review its description, parameters, and dependency graph.

  5. Enter the required parameters. Optionally, set the prune policy and task timeout in the Advanced Configuration section.

  6. Click , then monitor the aggregate status and each task on the Stack card.

Monitor a stack​

The StackInstance aggregate phase summarizes all tasks:

PhaseMeaning
PendingA prerequisite needs manual action.
ProgressingAt least one task is rolling out.
HealthyEvery task is healthy.
DegradedAt least one task failed.
DeletingThe Stack and its owned children are being removed.

Tasks can be Pending, Waiting, Progressing, Blocked, Healthy, or Failed. A waiting task hasn't started because one or more dependencies aren't healthy.

Inspect status through the management API:

vcluster platform connect management
kubectl get stackinstance <stack-name> -n <project-namespace> \
-o jsonpath='{.status.phase}{"\n"}{range .status.tasks[*]}{.name}{"\t"}{.phase}{"\t"}{.message}{"\n"}{end}'

Update or remove a Stack​

On the Stack card, edit the StackInstance to change its parameters, or use Retry Sync to retry failed tasks. You can also edit the StackInstance through the management API. The controller renders the template again and reconciles its tasks.

The controller also reapplies the fields it manages on each child App and Argo CD Application, so manual edits to those fields revert. Change the StackTemplate or StackInstance instead.

When a referenced StackTemplate removes a task, prunePolicy controls the existing child:

  • Retain, the default, keeps the child and reports it in status.orphanedApplications. The cluster's Apps tab marks the app as an orphaned application, and you can delete it there. You can't delete an app that a Stack still manages from that tab.
  • Prune deletes removed children in reverse dependency order.

Deleting a StackInstance removes every application it still owns, including retained orphans. Application charts can leave persistent volumes, namespaces, hooks, or custom resource definitions behind. Review the application's uninstall behavior before deletion.

Next steps​