본문 바로가기
DevOps/Kubernetes

Kubernetes - exposing port [Testing only]

by sayshare 2023. 7. 23.
반응형

 

Requirement

In order to create a Kubernetes cluster locally, we need to install:

  • Kubectl: command line tools for Kubernetes

For Mac: 


  
brew install kubectl

Exposing port

In order to run images locally with Kubernetes, we can expose the image port by the

port-forward

command:


  
kubectl port-forward pod/hello-world 8088 : 80

 

반응형