tinkerbell / cluster-api-provider-tinkerbell

Cluster API Infrastructure Provider
Apache License 2.0
103 stars 36 forks source link

Default mirror setting missing? #278

Open timstoop opened 1 year ago

timstoop commented 1 year ago

Expected Behaviour

We expect a new machine in a cluster created with cluster-api-provider-tinkerbell to be able to download tools like oci2disk, writefile, and kexec directly from quay or a local repo.

Current Behaviour

The machines try to download the images from the default server (I assume this to be docker hub, but the error doesn't really state this). I feel like there's some option to set up that default server, but I cannot find the option in the Hardware CRDs or the Cluster CRDs either. I'm basically just following the getting started guide but running into this.

Possible Solution

The getting started guide seems to be missing an explanation on how to tell a server what default mirror server it should be using. This is quite probably a linuxkit setting or something, as the template in the code (assuming it's internal/templates/templates.go) does not seem to allow for overriding the server.

Steps to Reproduce (for bugs)

  1. Follow getting started up to "Apply the workload cluster" (https://github.com/tinkerbell/cluster-api-provider-tinkerbell/blob/main/docs/QUICK-START.md#apply-the-workload-cluster)
  2. Check the boots logs and see that it's failing because it's unable to pull the oci2disk image.
  3. This is after it already download the tink-worker from quay, so networking is working.

Context

I'm not sure how to continue here, how to set the default mirror host to quay.

Your Environment

Let me know if there's anything else you need to help me solve this!