Zero To One

The connection to the server localhost:8080 was refused - did you specify the right host or port? 오류 해결 본문

서비스모니터링

The connection to the server localhost:8080 was refused - did you specify the right host or port? 오류 해결

Zero_To_One 2022. 5. 10. 00:09
> sudo kubectl port-forward service/ingress-nginx-controller 80
The connection to the server localhost:8080 was refused - did you specify the right host or port?

 

https://kubernetes.io/docs/tasks/extend-kubernetes/http-proxy-access-api/

 

Use an HTTP Proxy to Access the Kubernetes API

This page shows how to use an HTTP proxy to access the Kubernetes API. Before you begin You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on

kubernetes.io

위 링크 부분에서 

kubectl proxy --port=8080

를 실행해주면 된다