If you want to investigate and adjust your services from your localhost without exposing them port forwarding is used. With the help of it, you can interact with internal cluster processes of Kubernetes from local host.
Want to Learn DevOps, check out this DevOps Course by Intellipaat.