Ankra supports GitOps workflows for cluster management. You can define your cluster’s configuration, manifests, and add-ons in a YAML file and automate deployments from a Git repository.
What is a GitOps File?
A GitOps file is a YAML definition that tells Ankra how to configure and manage your cluster using resources stored in a Git repository. This approach lets you automate cluster setup, keep everything versioned, and use Git as the source of truth for your infrastructure.Supported GitOps File Types
There are two ways to structure your GitOps file in Ankra:1. Single YAML Definition
- All configuration, manifests, and add-ons are defined in a single YAML file.
- Manifests and add-ons are included directly in the file, often as base64-encoded content.
- This is best for simple or self-contained setups.
2. Multiple YAML Definition (Include Paths)
- The main YAML file references other files or directories for manifests and add-ons using include paths.
- This is useful for larger projects where you want to organize resources in separate files or folders.
- Manifests and add-ons can be stored in the repository and included as needed.
Example: Single YAML Definition
Example: Multiple YAML Definition (Include Paths)
- In this example,
manifests/andaddons/are directories in your Git repository containing YAML files for manifests and add-ons. - Ankra will load and apply all resources from these paths.
How It Works
- Ankra watches your Git repository for changes.
- When you update your YAML files, Ankra automatically syncs your cluster to match the desired state.
- You can use either approach (single file or includes) depending on your project size and workflow.
Tip: Use base64 encoding for manifest and values content in single YAML files to keep everything self-contained. For larger projects, organize your resources in folders and use include paths for better structure.