Skip to content

ImagePullBackOff error occurs when installing the InfrastructureProviderΒ #2998

@walnuts1018

Description

@walnuts1018

What is version of KubeKey has the issue?

v4.0.3

What is your os environment?

Ubuntu 24.04 / Kubernetes 1.35

KubeKey config file

A clear and concise description of what happend.

An ImagePullBackOff error occurs when applying infrastructure-components.yaml.

This manifest specifies docker.io/kubespheredev/capkk-controller-manager (:latest) as the image, but the correct specification should be docker.io/kubesphere/capkk-controller-manager:v4.0.3.

The issue likely stems from using the incorrect variable $tag instead of $TAG when executing make generate during the Upload Extra File step in the BuildReleaser Workflow, resulting in this erroneous manifest being generated.

TAG=${{ steps.prepare.outputs.version }}
if [[ $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
REGISTRY=docker.io/kubesphere TAG=$tag make generate
else
REGISTRY=docker.io/kubespheredev TAG=$tag make generate
fi

Relevant log output

Events:
  Type     Reason     Age                    From               Message
  ----     ------     ----                   ----               -------
  Normal   Pulling    51m (x5 over 54m)      kubelet            Pulling image "docker.io/kubespheredev/capkk-controller-manager"
  Warning  Failed     51m (x5 over 54m)      kubelet            Failed to pull image "docker.io/kubespheredev/capkk-controller-manager": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/kubespheredev/capkk-controller-manager:latest": failed to resolve reference "docker.io/kubespheredev/capkk-controller-manager:latest": docker.io/kubespheredev/capkk-controller-manager:latest: not found
  Warning  Failed     51m (x5 over 54m)      kubelet            Error: ErrImagePull
  Normal   BackOff    4m17s (x222 over 54m)  kubelet            Back-off pulling image "docker.io/kubespheredev/capkk-controller-manager"
  Warning  Failed     4m17s (x222 over 54m)  kubelet            Error: ImagePullBackOff

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions