Let’s say you have the service with type = ClusterIP and you need to connect to it from local PC. In this case you can forward the port using kubectl and access the service in your browser on localhost:local_port
kubectl port-forward service/service-name local_port:remote_port