Skip to content

Use port names rather than port numbers for services #7491

@jcpunk

Description

@jcpunk

Component(s)

No response

What is missing? Please describe.

When the services are setup for Alertmanager and Prometheus the are using explicit port numbers rather than named ports within the pod spec. Current kubernetes best practices say port names are the preferred method of mapping.

This includes, for example, svc/alertmanager, svc/alertmanager-operated, svc/prometheus, and svc/prometheus-operated.

Describe alternatives you've considered.

Ignore it because it currently "Just works"

Environment Information.

Environment

Kubernetes Version: 1.32
Prometheus-Operator Version: 0.80

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions