Skip to content

Need support for k8s / microk8s local image registry / mirror #75

@fnordahl

Description

@fnordahl

In some CI regions, access to external image registries such as docker is restricted.

One concrete example is the PS7 region for Canonical self hosted GitHub runners.

When running in that region, initialization of the microk8s provider fails and hangs indefinitely (fix provided in #74).

In that region, the environment variable DOCKERHUB_MIRROR provides a URL to a local registry.

If we set this up manually, following the instructions in the microk8s documentation, the setup succeeds:

sudo snap install microk8s --channel 1.32-strict/stable
sudo mkdir -p /var/snap/microk8s/current/args/certs.d/docker.io
cat <<EOF | sudo tee /var/snap/microk8s/current/args/certs.d/docker.io/hosts.toml
server = "$DOCKERHUB_MIRROR"
[host."$DOCKERHUB_MIRROR"]
capabilities = ["pull", "resolve"]
EOF
sudo microk8s stop
sudo microk8s start

Currently concierge will install the snap and immediately wait for setup to succeed, which does not allow for the end user to interject image registry configuration.

To me this suggests that concierge needs to handle this type of setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    25.10Planned for the 25.10 cyclefeatureA feature requestsmall itemA small item, for some value of "small"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions