Skip to content

Port forward a service #2195

@AlbertoSoutullo

Description

@AlbertoSoutullo

I would like to know if there is a way to get a service, and create a port forward to my local machine. I saw that his can be done pretty easily with external libraries, but I would like to stick with only one K8s library.

My idea is to forward whatever Thanos pod is available through it's service to my local machine, and then make queries to download some metrics to analyze them locally.

Looking at the documentation and other issues, like pod_porforward.py or #2138, but those couldn't really help me, since they are specific to pods, and I would like to do it through a service.

Is there a way to do this? Or I am not completely understanding the documentation?

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions