metallb icon indicating copy to clipboard operation
metallb copied to clipboard

Metallb installation warning

Open duanhongyi opened this issue 11 months ago • 3 comments

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 avatar May 14 '25 07:05 duanhongyi

@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

tylerauerbeck avatar May 17 '25 19:05 tylerauerbeck

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

Ergamon avatar Jun 04 '25 16:06 Ergamon

I have used below command to install and received the warnings. helm install metallb metallb/metallb --namespace metallb-system --version 0.15.2

arafth avatar Jun 18 '25 11:06 arafth

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?

oribon avatar Jun 30 '25 09:06 oribon

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 avatar Jul 01 '25 22:07 Ergamon

@Ergamon thanks, updated kubectl locally and managed to see the warning

oribon avatar Jul 06 '25 09:07 oribon