Kubectl port-foward: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
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 port-forward svc/yunikorn-service 9889:9889 -n yunikorn
</syntaxhighlight>

Revision as of 19:52, 6 December 2023

Internal

Overview

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

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