Skip to content

Configure helm to use a oci registry mirror/proxy without setting HTTP(S)_PROXY #13615

Closed as not planned

Description

I operate a CI environment that runs many different kinds of jobs, some of which run helm and fetch OCI charts from dockerhub, which eats into the rate limit of dockerhub. For docker/podman I can set a mirror in the configuration files that I am certain the CI jobs don't touch. For helm there doesn't seem to be such an option.

Is there a way to configure helm to connect to a http server of my choice instead of connecting to dockerhub, aside from the options mentioned above?

Activity

  1. gjenkins8 commented on Feb 2, 2025

    @gjenkins8
    Member

    We have had an outstanding HIP to support registry aliases for a long time. Lack of maintainer time has meant this has languished.

    But I do think supporting an existing standard would be good, like e.g.
    https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md#remapping-and-mirroring-registries

  2. felipecrs commented on Feb 6, 2025

    @felipecrs
    Contributor

    Actually, my solution was to change from:

    dependencies:
      - name: postgresql
        repository: https://charts.bitnami.com/bitnami
        version: ^16.4.6

    To:

    dependencies:
      - name: postgresql
        repository: oci://myinternalregistry.com/bitnamicharts
        version: ^16.4.6
  3. deniswassmann-alephalpha commented on Feb 14, 2025

    @deniswassmann-alephalpha
    Author

    We have had an outstanding HIP to support registry aliases for a long time. Lack of maintainer time has meant this has languished.

    But I do think supporting an existing standard would be good, like e.g. https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md#remapping-and-mirroring-registries

    that would be the best way to achieve what i am trying to do. in my usecase i would need to have some way to configure the mappings that doesn't interfere with "normal helm usage", i.e. by settings environment variables (HELM_REGISTRY_DOCKER_IO=<mapping-options>) or a system-wide config that can be mounted read-only into the CI job container (/etc/helm/repositories.yaml).

    I am thinking the only solution to this issue so far is to move away from Bitnami helm charts.

    Like https://artifacthub.io/packages/helm/groundhog2k/postgres instead of https://artifacthub.io/packages/helm/bitnami/postgresql.

    i can suggest that to the users of the CI system. but it only is a suggestion to the users, and given how none of us ever only eat the suggested serving size of chips, sweets, etc., you can guess how strict the users will follow that suggestion.

    it definitely is the best solution there currently is, but it would require changes from multiple teams in multiple repositories, which would also need to find a way to use the original registry on their laptops if we decide to host the mirror registry internally.

  4. grigoni commented on Feb 24, 2025

    @grigoni

    is this related to #10013 ?

  5. scottrigby commented on Mar 22, 2025

    @scottrigby
    Member
  6. github-actions commented on Aug 30, 2025

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  7. grigoni commented on Jan 13, 2026

    @grigoni

    Please keep it open

  8. TerryHowe commented on Jan 17, 2026

    @TerryHowe
    Contributor

    This would be covered by registries.conf support #11286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions