1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [port-forward](<https://delaparra-services.nl/knowledge-hub/port-forward>)

  

Category: Kubernetes 

# port-forward

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is port-forward?

 

port-forward: Tunnel a local port to a Pod or Service port. Lets you hit an internal service from your laptop without exposing it. ` kubectl port-forward ` creates a tunnel from a port on your computer to a pod or service in the cluster. ` kubectl port-forward svc/mysql 3307:3306 ` lets you connect a local database tool to the cluster's database on ` localhost:3307 `.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about port-forward

  

### How is port-forward used in practice?

 

It is ideal for debugging and admin tasks. You can reach internal services that are deliberately not exposed to the internet, without changing any configuration.

    

### What should you keep in mind with port-forward?

 

The tunnel lives only as long as the command runs, and it goes through the Kubernetes API, so it is not meant for production traffic or heavy data transfers. Be careful when connected to production this way, because your local tools now act directly on live data. A clear terminal title or a different port number for production helps avoid running a test query on the wrong database.

    

### What does an example of port-forward look like?

 

```
kubectl port-forward svc/web 8080:80
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [PersistentVolume (PV)](<https://delaparra-services.nl/knowledge-hub/persistentvolume-pv>) 
- [PersistentVolumeClaim (PVC)](<https://delaparra-services.nl/knowledge-hub/persistentvolumeclaim-pvc>) 
- [Pod](<https://delaparra-services.nl/knowledge-hub/pod-kubernetes>) 
- [QoS classes](<https://delaparra-services.nl/knowledge-hub/qos-classes>) 
- [ReplicaSet](<https://delaparra-services.nl/knowledge-hub/replicaset>) 
- [requests](<https://delaparra-services.nl/knowledge-hub/requests>)

 

[All terms starting with P](<https://delaparra-services.nl/knowledge-hub#letter-p>)

 

## Skills

 

- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) 
- ### Helm Chart Scaffolding

 

Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.

 [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) 
- ### GitOps Workflow

 

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

 [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/port-forward/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/port-forward)
