Publish and pin Helm charts
The Helm format serves a classic chart repository. Clients discover versions in index.yaml and download the .tgz. Choose an upstream that serves the same chart repository layout.
Create repositories
Run these Bash commands with an authenticated administrator arkactl profile and jq. Replace the example address with your HTTPS endpoint. Publish to Hosted. Group looks in Hosted first, then in Proxy. Grant the publishing account write access to Hosted and the consuming account read access to Group and the relevant members.
For each consuming or publishing identity, sign in with its profile and run arkactl --json tokens create --name helm-ci --expires-in-days 30 | jq -er .plaintext. Send the output directly to the CI secret store. Use a separate read and write token for the examples below.
export ARKA_URL=https://packages.example.org
hosted=$(arkactl --json repo create --name helm-hosted --type hosted --format helm | jq -er .id)
proxy=$(arkactl --json repo create --name helm-proxy --type proxy --format helm \
--upstream-url https://upstream.example.org/repository/helm/ | jq -er .id)
arkactl repo create --name helm-group --type group --format helm --member "$hosted,$proxy"
WRITE="$ARKA_URL/repository/helm-hosted"
READ="$ARKA_URL/repository/helm-group"Package and publish a chart
Set at least apiVersion: v2, name: widget, and version: 1.2.3 in Chart.yaml. Run these commands from the chart’s parent directory and keep the release archive for comparison.
helm lint ./widget
helm package ./widget
curl -fsS -H "Authorization: Bearer $ARKA_WRITE_TOKEN" \
-F chart=@widget-1.2.3.tgz "$WRITE/api/charts"Configure consumers
printf '%s\n' "$ARKA_READ_TOKEN" | helm repo add arka "$READ" \
--username "$ARKA_USER" --password-stdin
helm repo update arka
helm search repo arka/widget --versions
mkdir -p pulled
helm pull arka/widget --version 1.2.3 --destination pulled
cmp widget-1.2.3.tgz pulled/widget-1.2.3.tgz
helm template review pulled/widget-1.2.3.tgz >/dev/nullFind the repository configuration with helm env HELM_REPOSITORY_CONFIG. In CI, use isolated HELM_CONFIG_HOME, HELM_CACHE_HOME, and HELM_DATA_HOME directories and restrict credential file permissions. Commit dependency versions and Chart.lock with the application.
| Symptom | What to check |
|---|---|
| helm push returns an error | helm push uses OCI. Upload to the classic Helm Hosted repository with multipart POST api/charts. |
| New chart version is missing | Verify version in Chart.yaml, refresh the repository, and check entries.widget in index.yaml. |
| Chart is listed but the pull fails | Check entries.widget[].urls, external hostname, member read access, and the TLS trust chain. Retry with helm pull --debug. |