metallb-operator: Issue with speaker image in The MetalLB custom resource & address pool added but could not find the amended `config` ConfigMap used to configure MetalLB
Issue 1: Speaker image with tag main not working after deploying MetalLB custom resource:
apiVersion: metallb.io/v1beta1
kind: MetalLB
metadata:
name: metallb
namespace: metallb-system
when deployed with quay.io/metallb/speaker:main :
NAME READY STATUS RESTARTS AGE
speaker-7g5jr 0/1 CrashLoopBackOff 16 (4m9s ago) 2d20h
--------------------------------------------------------------------------------------------------------------------------------------------
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Killing 51s kubelet Container speaker definition changed, will be restarted
Normal Pulled 6s (x14 over 2d19h) kubelet Container image "quay.io/metallb/speaker:main" already present on machine
Normal Created 6s (x14 over 2d19h) kubelet Created container speaker
Normal Started 6s (x14 over 2d19h) kubelet Started container speaker
Warning BackOff 1s (x137 over 2d19h) kubelet Back-off restarting failed container
I had to edit the container image and redeploy each speaker pod because it created five replicas quay.io/metallb/speaker:v0.12.1. Here is the result:
NAME READY STATUS RESTARTS AGE
speaker-7g5jr 1/1 Running 18 (5m55s ago) 2d20h
---------------------------------------------------------------------------------------------------------------------------------------
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Killing 20m kubelet Container speaker definition changed, will be restarted
Normal Pulled 19m (x15 over 2d20h) kubelet Container image "quay.io/metallb/speaker:main" already present on machine
Normal Created 19m (x15 over 2d20h) kubelet Created container speaker
Normal Started 19m (x15 over 2d20h) kubelet Started container speaker
Warning BackOff 10m (x184 over 2d20h) kubelet Back-off restarting failed container
now it’s displaying running, but events didn’t change. And I feel it’s not working.
Issue 2: Due to the fact that I don’t know if MetalLB custom resource is working or not, I could not see the amended config ConfigMap used to configure MetalLB when address pool was added to test it out:
$ kubectl get cm -n metallb-system
NAME DATA AGE
kube-root-ca.crt 1 2d20h
metallb.io.metallboperator 0 2d20h
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (10 by maintainers)
Please just look at the docs and the configuration examples on the metallb repository here https://github.com/metallb/metallb/tree/main/configsamples. That is a template and not a full crd. I am going to close this issue as it looks like the upgrade process wasn’t followed correctly (https://github.com/metallb/metallb-operator/issues/215#issuecomment-1184396309). If you need help in understanding how to configure metallb, please come to the # metallb slack channel on the k8s slack so other users will be able to help you, and try to go through the doc / the examples.
Correct!
Just to make sure, it’s not an example, you need to apply those manifests as they are
Please consume https://github.com/metallb/metallb/blob/v0.13.3/config/manifests/metallb-native.yaml so you are sure you won’t be affected by changes on the main tag
That was from the main branch right?