How to use port forwarding with containers deployed in a Kubernetes cluster

preview_player
Показать описание
Port forwarding within a Kubernetes cluster is a helpful tool for debugging. Find out how it's done.

List of Commands:

kubectl run web-pod --image=nginx --port=80 --generator=run-pod/v1
kubectl get pods
kubectl describe pods web-pod
kubectl port-forward web-pod 8080:80
curl 127.0.0.1:8080

Рекомендации по теме
Комментарии
Автор

Here the localhost port means the k8s cluster node or it is outside the cluster access ?

kunalbagwe