Ankra makes it easy to manage clusters using GitOps. Define your cluster’s configuration, manifests, and add-ons in YAML files, store them in Git, and let Ankra handle the automation.
What is GitOps?
GitOps is a way to manage your Kubernetes infrastructure using Git as the single source of truth. With Ankra:- Store configuration in Git - Your cluster definitions, manifests, and add-ons live in your repository
- Automatic sync - Ankra detects changes and applies them to your clusters
- Version control - Track every change, roll back when needed, review via pull requests
- Team collaboration - Multiple team members can update configurations safely
How It Works
Ankra uses include paths to let you split your configuration into multiple files or folders. This keeps your setup modular, maintainable, and easy to scale.Why Use Include Paths?
CI/CD Integration
Keep manifests and add-ons in separate files or folders for easy automation in your CI/CD pipelines. Update only what you need, and trigger deployments automatically.
Modularity & Reuse
Organize resources by team, environment, or feature. Reuse the same manifests or add-ons across different stacks or clusters.
Team Collaboration
Let different teams own and update their own YAML files without merge conflicts. Everyone works from the same Git repository.
Scalability
Easily add new resources or stacks by dropping new YAML files into the right folder-no need to edit a giant config file.
Repository Structure
Organize your Git repository with separate folders for manifests and add-ons:Cluster Definition Example
Yourimport-cluster.yaml references files using include paths:
manifests/ and addons/ folders. You can also include individual files for more control:
How Ankra Syncs Your Cluster
- You update or add YAML files in your Git repository
- Ankra detects the change and automatically syncs your cluster
- All included manifests and add-ons are applied in the order you specify
Monitoring Sync Status
Track the status of your GitOps syncs in the cluster settings.Sync Status Banner
Navigate to your cluster → Settings → GitOps to see the current sync status:| Status | Description |
|---|---|
| Synced | All configurations are up-to-date with the repository |
| Syncing | A sync is currently in progress |
| Error | The last sync failed—check error details below |
| Not Configured | GitOps is not yet connected to a repository |
Sync Progress
During a sync, you’ll see the progress through these phases:- Fetching - Pulling latest changes from Git
- Validating - Checking YAML syntax and configuration
- Applying - Deploying changes to the cluster
- Completed - Sync finished successfully
Manual Sync
Click Sync Now to trigger an immediate sync from your Git repository. Use this when:- You want to apply changes without waiting for automatic detection
- Webhook delivery failed
- You need to force a refresh
Sync History
View a complete history of all GitOps syncs for your cluster.Accessing Sync History
- Go to your cluster → Settings → GitOps
- Scroll down to the Sync History table
History Table Features
The sync history table shows:| Column | Description |
|---|---|
| Status | Success, Failed, or Running badge |
| Source | How the sync was triggered (webhook or manual) |
| Commit | The Git commit SHA with a link to view in GitHub |
| Started | When the sync began (relative timestamp) |
| Triggered By | Who or what initiated the sync |
- Pagination: Navigate through history (10 entries per page)
- Sorting: Click column headers to sort by any field
- Commit Links: Click the SHA to view the commit in GitHub
Sync Metadata
Each sync entry includes detailed metadata:- Last Commit SHA: The exact commit that was synced
- Sync Source:
webhook(automatic) ormanual - Timestamp: When the sync occurred
- Retry Count: Number of retry attempts (if any)
- IAC Files Link: Direct link to view the configuration files in your repository
Handling Sync Errors
When a sync fails, Ankra provides detailed error information to help you fix issues quickly.Error Display
Failed syncs show:- Validation Errors: Issues with YAML syntax or configuration
- Field-Level Guidance: Specific fields that need attention
- Missing Fields: Required fields that weren’t provided
- Typo Detection: Suggestions for misspelled field names
Common Error Types
Validation Errors
Validation Errors
YAML syntax issues or invalid configuration values.Solution: Check the error details for the specific field and fix the YAML in your repository.
Missing Required Fields
Missing Required Fields
Required configuration fields weren’t provided.Solution: The error shows which fields are missing with examples of expected values.
Resource Conflicts
Resource Conflicts
A resource already exists or conflicts with another definition.Solution: Check for duplicate resource names or conflicting configurations.
Retrying Failed Syncs
- Fix the issues in your Git repository
- Commit and push the changes
- Click Sync Now or wait for automatic detection
- Monitor the new sync in the history table
Best Practices
Troubleshooting
If Ankra isn’t syncing as expected:| Issue | Solution |
|---|---|
| Sync not triggering | Check that Git credentials are valid and have repo access |
| Files not found | Verify all include paths exist in the repository |
| Invalid configuration | Ensure YAML files are syntactically correct |
| Wrong branch | Confirm the branch name in your cluster definition matches |
Global Helm Registries
Ankra comes with a curated index of preloaded Helm charts that are ready to use out of the box. These registries power the add-on catalog in the Ankra platform.Community Contributions
Want to add a Helm chart that would benefit the entire Ankra community? Submit a pull request to the ankra-global-resources repository. Your contribution will be available to all Ankra users.
- Helm Registries - Preloaded chart repositories that appear in the Ankra add-on index
- Global Resources - Platform-wide resource definitions
Contributing a Helm Registry
- Fork the ankra-global-resources repository
- Add your Helm registry definition to the
helm_registries/folder - Submit a pull request with a description of the charts and their use cases
- Once merged, your charts will be available to all Ankra users
When contributing, ensure the Helm charts are well-maintained, secure, and provide value to the broader Kubernetes community.
Related
- Stacks - Learn about organizing resources into stacks
- Add-ons - Install Helm charts as add-ons
- Manifests - Deploy raw Kubernetes manifests
Still have questions? Join our Slack community and we’ll help out.