Editing Kubectl port-forward
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
* Man: https://www.mankier.com/1/kubectl-port-forward | * Man: https://www.mankier.com/1/kubectl-port-forward | ||
* <code>[[kubectl port-forward --help]]</code> | * <code>[[kubectl port-forward --help]]</code> | ||
− | + | ||
− | + | ||
+ | [[kubectl]] [[port-forward]] [[deployment/]]mydeployment 8080:443 | ||
== Examples == | == Examples == | ||
Line 13: | Line 14: | ||
** [[Alertmanager]]: <code>kubectl port-forward --namespace default svc/prometheus-kube-prometheus-alertmanager 9093:9093</code> | ** [[Alertmanager]]: <code>kubectl port-forward --namespace default svc/prometheus-kube-prometheus-alertmanager 9093:9093</code> | ||
− | + | * <code>kubectl port-forward [[svc]]/[[argocd]]-server -n argocd 8080:443</code> | |
− | |||
[[export]] POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}") | [[export]] POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}") | ||
Line 47: | Line 47: | ||
See '[[kubectl port-forward -h]]' for help and examples | See '[[kubectl port-forward -h]]' for help and examples | ||
− | |||
− | |||
Line 61: | Line 59: | ||
* [[Kubernetes networking]] | * [[Kubernetes networking]] | ||
* <code>[[kubectl get services]]</code> | * <code>[[kubectl get services]]</code> | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: