Skip to content

Can't create cluster following the current documentation #154

@hansbogert

Description

@hansbogert

Context

Using the instructions on: https://documentation.ubuntu.com/canonical-kubernetes/latest/capi/tutorial/getting-started/

This is using the maas provider.

Reproduction
After the clusterctl init command:


kubectl describe -n capmaas-system pods capmaas-controller-manager-xxx-xxx

Events:
  Type     Reason       Age                From               Message
  ----     ------       ----               ----               -------
  Normal   Scheduled    36s                default-scheduler  Successfully assigned capmaas-system/capmaas-controller-manager-7fc468f64f-hhgrd to kind-control-plane
  Warning  FailedMount  34s (x3 over 36s)  kubelet            MountVolume.SetUp failed for volume "cert" : secret "capmaas-webhook-service-cert" not found
  Normal   Pulling      28s                kubelet            Pulling image "gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0"
  Normal   Pulled       21s                kubelet            Successfully pulled image "gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0" in 2.425s (6.653s including waiting). Image size: 19764286 bytes.
  Normal   Created      21s                kubelet            Created container: kube-rbac-proxy
  Normal   Started      21s                kubelet            Started container kube-rbac-proxy
  Normal   BackOff      19s (x2 over 20s)  kubelet            Back-off pulling image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0"
  Warning  Failed       19s (x2 over 20s)  kubelet            Error: ImagePullBackOff
  Normal   Pulling      5s (x2 over 32s)   kubelet            Pulling image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0"
  Warning  Failed       3s (x2 over 28s)   kubelet            Failed to pull image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0": rpc error: code = NotFound desc = failed to pull and unpack image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0": no match for platform in manifest: not found
  Warning  Failed       3s (x2 over 28s)   kubelet            Error: ErrImagePull

...
Events:
  Type     Reason       Age                From               Message
  ----     ------       ----               ----               -------
  Normal   Scheduled    36s                default-scheduler  Successfully assigned capmaas-system/capmaas-controller-manager-7fc468f64f-hhgrd to kind-control-plane
  Warning  FailedMount  34s (x3 over 36s)  kubelet            MountVolume.SetUp failed for volume "cert" : secret "capmaas-webhook-service-cert" not found
  Normal   Pulling      28s                kubelet            Pulling image "gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0"
  Normal   Pulled       21s                kubelet            Successfully pulled image "gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0" in 2.425s (6.653s including waiting). Image size: 19764286 bytes.
  Normal   Created      21s                kubelet            Created container: kube-rbac-proxy
  Normal   Started      21s                kubelet            Started container kube-rbac-proxy
  Normal   BackOff      19s (x2 over 20s)  kubelet            Back-off pulling image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0"
  Warning  Failed       19s (x2 over 20s)  kubelet            Error: ImagePullBackOff
  Normal   Pulling      5s (x2 over 32s)   kubelet            Pulling image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0"
  Warning  Failed       3s (x2 over 28s)   kubelet            Failed to pull image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0": rpc error: code = NotFound desc = failed to pull and unpack image "gcr.io/spectro-dev-public/release/cluster-api/cluster-api-provider-maas-controller:v1.0.0": no match for platform in manifest: not found
  Warning  Failed       3s (x2 over 28s)   kubelet            Error: ErrImagePull

Probable cause

I think they forgot to include a x86-64 build for the cluster-api-provider-maas-controller:v1.0.0 image:

noteworthy
this works though if the microk8s or kind cluster is on an arm64 machine.

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