Kubectl port-foward: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


=Overview=
=Overview=
<font size=-2>
  kubectl [-n ''namespace''] port-forward service/''service-name'' ''local-port'':''service-port''
</font>


  kubectl [-n ''namespace''] port-forward service/''service-name'' ''local-port'':''service-port''
<syntaxhighlight lang='bash'>
kubectl -n yunikorn port-forward svc/yunikorn-service 9889:9889
</syntaxhighlight>

Latest revision as of 19:52, 6 December 2023

Internal

Overview

 kubectl [-n namespace] port-forward service/service-name local-port:service-port

kubectl -n yunikorn port-forward svc/yunikorn-service 9889:9889