exporter: add name to containerPort

Named containerPort is a useful feature when generating dynamic scrape
targets with prometheus.

This makes it clear that the containerPort is intended for metrics
scraping.

The name matches that which is on the mgr deployment.

Signed-off-by: Justin Cichra <jcichra@cloudflare.com>
(cherry picked from commit 12c36e9472)
This commit is contained in:
Justin Cichra authored and Mergify committed 2025-04-29 19:15:14 +00:00
1 parent 263037fd85
commit 0f310c8c59
1 file changed
+1
@@ -196,6 +196,7 @@ func getCephExporterDaemonContainer(cephCluster cephv1.CephCluster, cephVersion
}
containerPort := corev1.ContainerPort{
Name: "http-metrics",
ContainerPort: int32(DefaultMetricsPort),
Protocol: corev1.ProtocolTCP,
}