At this moment, when deploying the Kubernetes add-ons in Konvoy 1.8.5, the user will encounter issues pulling the metal-lb images from the docker registry because the images are no longer hosted there but in quay.io:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 70s default-scheduler Successfully assigned kubeaddons/metallb-kubeaddons-controller-5dc75865d4-fhx86 to sortega-dkp-worker0
Normal Pulling 31s (x3 over 69s) kubelet Pulling image "metallb/controller:v0.9.3"
Warning Failed 31s (x3 over 69s) kubelet Failed to pull image "metallb/controller:v0.9.3": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/metallb/controller:v0.9.3": failed to resolve reference "docker.io/metallb/controller:v0.9.3": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Warning Failed 31s (x3 over 69s) kubelet Error: ErrImagePull
Normal BackOff 6s (x4 over 68s) kubelet Back-off pulling image "metallb/controller:v0.9.3"
Warning Failed 6s (x4 over 68s) kubelet Error: ImagePullBackOff
To solve the issue, the image should get updated on the deployment metallb-kubeaddons-controller and the daemonset metallb-kubeaddons-speaker by patching the images in the aforementioned objects executing the following commands:
kubectl -n kubeaddons patch deployment metallb-kubeaddons-controller --patch '{"spec": {"template": {"spec": {"containers": [{"name": "controller","image": "quay.io/metallb/controller:v0.9.3"}]}}}}'
kubectl -n kubeaddons patch ds metallb-kubeaddons-speaker --patch '{"spec": {"template": {"spec": {"containers": [{"name": "speaker","image": "quay.io/metallb/speaker:v0.9.3"}]}}}}'
After patching the objects, we recommend re-deploying the add-ons:
./konvoy deploy addons -y