Adding your own registry to Ankra enables you and your team to distribbute helm-charts as add-on components that can be deployed onto a cluster as part of a stack.
ποΈ Create your own registry with Github
Use any OCI Helm registry (GHCR, Harbor, JFrog Artifactory, AWS ECR, Google Artifact Registry, etc.) with Ankra. This guide focuses on GitHub Container Registry (GHCR) as a free and accessible example.
Prerequisites
Before you begin, ensure you have:- A GitHub account
- Git installed on your machine
- Helm CLI installed (Installation guide)
- A GitHub Personal Access Token with
write:packages
permission
To create a Personal Access Token: Go to GitHub Settings > Developer settings > Personal access tokens > Generate new token, and select the
write:packages
scope.Step 1: Set Up Your Repository
Create a new GitHub repository to host your Helm charts:- Go to GitHub and create a new repository (e.g.,
my-helm-charts
) - Clone the repository locally:
Step 2: Create Your Helm Chart
Generate a new Helm chart or prepare an existing one:Step 3: Configure Your Chart
Edit theChart.yaml
file to include proper metadata:
Step 4: Package Your Chart
Package your Helm chart into a.tgz
file:
my-sparkly-app-1.0.0.tgz
.
Step 5: Login to GHCR
Authenticate with GitHub Container Registry using your Personal Access Token:$GITHUB_TOKEN
with your actual token and YOUR_USERNAME
with your GitHub username.
Step 6: Push Your Chart
Push your packaged chart to GHCR:Step 7: Verify your registry
After pushing, your chart will be available at:Step 8: Add your registry to Ankra
Now that your chart is published, add your GHCR registry to Ankra:- Go to the Add-ons section in your Ankra Platform
- Click βManage Sourcesβ
- Add your GHCR registry URL: `