Skip to content

Setting up a local registry doesn't work when using a registry_port different than default 5000 #143

@afalhambra-hivemq

Description

@afalhambra-hivemq

When trying to setup a local registry in KinD via the GitHub action as follows:

        uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3
        with:
          cluster_name: "kind"
          registry: true
          registry_name: kind-registry
          registry_port: 5555

The OCI images available in that local registry cannot be pulled out from the pods running in the KinD cluster and the following error is thrown.

time="2025-06-30T10:45:19Z" level=info msg="trying next host" error="failed to do request: Head \"https://kind-registry:5000/v2/hivemq/hivemq-platform-operator/manifests/snapshot\": http: server gave HTTP response to HTTPS client" host="kind-registry:5000"
ctr: failed to resolve reference "kind-registry:5000/hivemq/hivemq-platform-operator:snapshot": failed to do request: Head "https://kind-registry:5000/v2/hivemq/hivemq-platform-operator/manifests/snapshot": http: server gave HTTP response to HTTPS client

Please note that I had to point out to the port 5000 instead of the 5555 here in the pods. Otherwise I get the following error instead if using port 5555:

error="failed to do request: Head \"https://kind-registry:5555/v2/hivemq/hivemq-platform-operator/manifests/snapshot\": dial tcp 172.18.0.3:5555: connect: connection refused" host="kind-registry:5555"
ctr: failed to resolve reference "kind-registry:5555/hivemq/hivemq-platform-operator:snapshot": failed to do request: Head "https://kind-registry:5555/v2/hivemq/hivemq-platform-operator/manifests/snapshot": dial tcp 172.18.0.3:5555: connect: connection refused

The images can be listed successfully within the Kind cluster:

$ curl http://kind-registry:5000/v2/_catalog
{"repositories":["hivemq/hivemq-platform-operator","hivemq/hivemq-platform-operator-init","hivemq/hivemq4"]}

However, if I use default port 5000, everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions