Modern GitOps repository structure and workflow for Kubernetes cluster management with Ankra, Stack Builder, and AI editor features.
clusters/
directory. Each cluster gets its own folder, named to match its Ankra identity (e.g., prod-cluster-6chysytvjq/
). Inside each cluster folder, you’ll find:
apiVersion: v1
, kind: ImportCluster
) and syncs with your Git repository. The platform automatically detects stacks, dependencies, and configuration files, then visualizes and manages them in the WebUI.
Pro Tip: This approach streamlines the entire software lifecycle, from development to production. It makes it easy to reproduce, update, and manage clusters at every stage.
Key/Path | Description |
---|---|
apiVersion: v1 | Specifies the API version for the resource. |
kind: ImportCluster | Declares the type of resource to create (an imported cluster). |
metadata.name | The name of your cluster (matches directory name). |
spec.git_repository.provider | The Git provider (e.g., github, gitlab). |
spec.git_repository.credential_name | The credential to use for accessing the repo. |
spec.git_repository.branch | The branch to watch for changes. |
spec.git_repository.repository | The repository path (org/repo). |
spec.stacks | List of stacks to deploy to the cluster. |
stacks[].name | Name of the stack. |
stacks[].description | Description of the stack. |
stacks[].manifests | List of manifests to apply. |
manifests[].name | Name of the manifest. |
manifests[].manifest_base64 | The manifest YAML, base64-encoded. |
manifests[].namespace | Namespace for the manifest. |
manifests[].parents | Dependencies for this manifest. |
stacks[].addons | List of add-ons to install. |
addons[].name | Name of the add-on. |
addons[].chart_name | Helm chart name for the add-on. |
addons[].chart_version | Version of the Helm chart. |
addons[].repository_url | URL of the Helm chart repository. |
addons[].namespace | Namespace for the add-on. |
addons[].configuration_type | How the add-on is configured (e.g., standalone). |
addons[].configuration.values_base64 | Helm values.yaml, base64-encoded. |
addons[].parents | Dependencies for this add-on. |
Use Stack Builder and AI editor in Ankra’s WebUI to visually configure, validate, and optimize your cluster setups.
argocd/
folder, used by ArgoCD for managing application deployments and syncing resources.
argocd/
folder are auto-generated by Ankra and will be overwritten on each sync or update. Any manual changes made here will not persist.add-ons/
and manifests/
folders, along with your cluster definition YAML. To make lasting changes, update your Helm values in add-ons/
, your manifests in manifests/
, or your cluster YAML, never directly in argocd/
.
from_file
key. This makes your configuration modular, readable, and easy to maintain.
from_file
Worksfrom_file
to reference Kubernetes YAML files (e.g., CRDs, RBAC, ConfigMaps) stored in your repo. This keeps your cluster definition clean and lets you reuse files across stacks.from_file
under configuration
to point to a Helm values.yaml file. This allows you to customize Helm charts without embedding large YAML blocks directly in your cluster definition.