create_stack
Create and deploy a NEW stack on the cluster from a full specification of its addons and manifests. ALWAYS declare the deployment order with parents: a member with no parents deploys in PARALLEL with every other parentless member, so a chart that needs a namespace, a Secret, a ConfigMap, a CRD, an operator, or a database another member of the stack provides will race it and fail. A parent is {"name": "", "kind": "addon" or "manifest"}; kind is lowercase and must match the referenced member's type. Typical edges: the Namespace, Secret, and ConfigMap manifests are parents of the addons that consume them; cert-manager is a parent of its ClusterIssuer manifest; an operator addon is a parent of the custom-resource manifests it reconciles; a database addon is a parent of the application that connects to it. Leave a member parentless only when it is genuinely independent of every other member. Deployment starts immediately and the change is pushed to the cluster's GitOps repository when one is connected. NEVER pass raw secret values in values or manifests - use ${SECRET_SLOT:} sentinels from the user's slot catalog; raw secret-looking values are refused. Manifests carrying cluster-scoped or cluster-critical kinds (CustomResourceDefinition, ClusterRole, webhook configurations, PersistentVolume, ...), documents in protected namespaces (kube-, ankra-), or bindings to cluster-admin are refused by policy - manage those through the UI. Validate the specification with validate_stack first - it reports the members left with no dependency edges - and use update_stack for a stack that already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | Yes | The stack specification. Each member may carry agents_md - AGENTS.md markdown of operational learnings saved beside it in GitOps for future agents. Secret values must use ${SECRET_SLOT:<slot-id>} sentinels - raw secrets are refused. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. |