Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use kubectl portforward? #2309

Closed
chenqiang19 opened this issue Dec 11, 2024 · 2 comments
Closed

how to use kubectl portforward? #2309

chenqiang19 opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@chenqiang19
Copy link

I would like to be able to use diff port mapping. E.g. Using the kubectl CLI command form of kubectl port-forward --address=0.0.0.0 -n namespace pod/pod_name 8081:8080

using pf = portforward(api_instance.connect_get_namespaced_pod_portforward, name, namespace, ports=str(port)) and pf.socket(port)

this interface cannot implement my function!

@chenqiang19 chenqiang19 added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 11, 2024
@roycaihw
Copy link
Member

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

Please check this example: https://github.com/kubernetes-client/python/blob/master/examples/pod_portforward.py

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@roycaihw roycaihw self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants