Kubectl port-foward: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 9: Line 9:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
kubectl port-forward svc/yunikorn-service 9889:9889 -n yunikorn
kubectl -n yunikorn port-forward svc/yunikorn-service 9889:9889  
</syntaxhighlight>
</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