Metallb installation warning
W0514 06:56:51.012742 1570 warnings.go:70] spec.template.spec.containers[3].ports[0]: duplicate port name "monitoring" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0]
@duanhongyi How are you deploying metallb? And what release? A quick glance at the latest on main doesn't appear to have any duplicate entries
Hi, I got the same error today.
I am using helm chart for upgrade.
Basically just
helm upgrade metallb metallb/metallb -n metallb
If it matters I went from v0.14.9 to v0.15.2.
I am getting simliar warnings on multiple clusters
I have used below command to install and received the warnings. helm install metallb metallb/metallb --namespace metallb-system --version 0.15.2
I just ran the command and did not see any warnings:
$ helm install metallb metallb/metallb --namespace metallb-system --create-namespace --version 0.15.2
NAME: metallb
LAST DEPLOYED: Mon Jun 30 12:21:02 2025
NAMESPACE: metallb-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
MetalLB is now running in the cluster.
Now you can configure it via its CRs. Please refer to the metallb official docs
on how to use the CRs.
$ helm version
version.BuildInfo{Version:"v3.18.3", GitCommit:"6838ebcf265a3842d1433956e8a622e3290cf324", GitTreeState:"clean", GoVersion:"go1.24.4"}
what version of helm are you using?
I have set up a fresh cluster, basically nothing installed.
helm install metallb metallb/metallb --namespace metallb --create-namespace --version 0.15.2
I0702 00:43:07.615615 51572 warnings.go:110] "Warning: spec.template.spec.containers[3].ports[0]: duplicate port name \"monitoring\" with spec.template.spec.containers[0].ports[0], services and probes that select ports by name will use spec.template.spec.containers[0].ports[0]"
NAME: metallb
LAST DEPLOYED: Wed Jul 2 00:43:06 2025
NAMESPACE: metallb
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
MetalLB is now running in the cluster.
Now you can configure it via its CRs. Please refer to the metallb official docs
on how to use the CRs.
helm version
version.BuildInfo{Version:"v3.18.3", GitCommit:"6838ebcf265a3842d1433956e8a622e3290cf324", GitTreeState:"clean", GoVersion:"go1.24.4"}
I dont think the warning is coming from helm.
kubectl version
Client Version: v1.33.2
Kustomize Version: v5.6.0
Server Version: v1.33.2
@Ergamon thanks, updated kubectl locally and managed to see the warning