# Helm Charts mirror (pkg.shecan.ir)

> Helm chart repositories: /hashicorp/ mirrors helm.releases.hashicorp.com (index.yaml with chart URLs rewritten to this host, chart .tgz and .prov files) and /bitnami/ mirrors Bitnami's index (repo.broadcom.com/bitnami-files) with its oci://registry-1.docker.io/bitnamicharts/... URLs rewritten to oci://mirror-docker.pkg.shecan.ir/bitnamicharts/..., so the charts come through the Docker Hub mirror.

- Upstream: helm.releases.hashicorp.com, repo.broadcom.com (Bitnami)
- Mirror URLs: <https://mirror-helm.pkg.shecan.ir/hashicorp>, <https://mirror-helm.pkg.shecan.ir/bitnami>
- Clients: helm
- Service status: <https://pkg.shecan.ir/status.json> (key `helm`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/helm/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/helm.json>

## Limitations

- Only the HashiCorp and Bitnami repositories are mirrored; other chart repositories are not.
- The Bitnami index is large (about 27 MB); `helm repo add` and `helm repo update` take a few seconds the first time. Charts can also be pulled directly: helm pull oci://mirror-docker.pkg.shecan.ir/bitnamicharts/<chart>.
- A chart installs the container images named in its values (Docker Hub, GHCR, ...); give the node the container registry mirrors (https://pkg.shecan.ir/setup.sh) or override the image registry. Bitnami has moved many of its images to Docker Hub namespaces such as bitnamilegacy.
- The index is cached for 10 minutes: a chart version published upstream appears here after that.

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### helm: persistent (user- or system-wide configuration)

Run

```sh
helm repo add hashicorp https://mirror-helm.pkg.shecan.ir/hashicorp
helm repo update
helm search repo hashicorp/vault
```

Undo / restore the default

```sh
helm repo remove hashicorp
```

Example (checked by hand)

```sh
helm install vault hashicorp/vault --namespace vault --create-namespace
```

Run

```sh
helm repo add bitnami https://mirror-helm.pkg.shecan.ir/bitnami
helm repo update
helm search repo bitnami/nginx
```

Undo / restore the default

```sh
helm repo remove bitnami
```

### helm: temporary (one command or the current shell; nothing saved)

Run

```sh
helm pull oci://mirror-docker.pkg.shecan.ir/bitnamicharts/nginx
```
