Skip to content

Adding the named port to container spec

We are trying to scrape Prometheus metrics using PodMonitor. PodMonitor requires the use of a named port. Is it possible to add a ports with any name (metrics, http or any other meaningful name) to deployment.yaml?