MetalLB AddOn Failing repository does not exist or may require 'docker login'
Problem
While trying to install or upgrade MetalLB Addon from Management Plane the docker logs shows following error:
Environment
Platform9 Managed Kubernetes - v5.4 and Higher
MetalLB AddOn
Cause
MetalLB images that were earlier hosted on Docker have now moved to Quay officially. The old deployments are trying to reach the docker image repository which is causing this failure.
Resolution
Upgrade the Kubernetes cluster to any of the below list or higher version, that contains the fix with correct MetalLB repository
Patches for v1.20 will be available soon.
If upgrade of cluster is not feasible proceed with the below workaround steps.
Workaround
Edit the MetalLB
controllerdeployment and change image location to quay:
Update image to
quay.io/metallb/controller:v0.10.2
Edit the MetalLB
speakerdaemonset and the change image location to quay
Update image to
quay.io/metallb/speaker:v0.10.2
Additional Information
Reference https://github.com/metallb/metallb/issues/696#issuecomment-714652624.
