{
    "url": "https://delaparra-services.nl/knowledge-hub/port-forward",
    "locale": "en",
    "title": "port-forward: Knowledge hub | DeLaParra Services",
    "description": "Tunnel a local port to a Pod or Service port. Lets you hit an internal service from your laptop without exposing it.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/port-forward",
        "nl": "https://delaparra-services.nl/nl/kennisbank/port-forward"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/port-forward.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/port-forward.md",
        "json": "https://delaparra-services.nl/knowledge-hub/port-forward.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/port-forward.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/port-forward.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward.csv",
            "encodingFormat": "text/csv",
            "name": "port-forward.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward.json",
            "encodingFormat": "application/json",
            "name": "port-forward.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward.md",
            "encodingFormat": "text/markdown",
            "name": "port-forward.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward.pdf",
            "encodingFormat": "application/pdf",
            "name": "port-forward.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward.zip",
            "encodingFormat": "application/zip",
            "name": "port-forward.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/port-forward/skills.zip",
            "encodingFormat": "application/zip",
            "name": "port-forward-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [port-forward](<https://delaparra-services.nl/knowledge-hub/port-forward>)\n\n  \n\nCategory: Kubernetes \n\n# port-forward\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is port-forward?\n\n \n\nport-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 `.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about port-forward\n\n  \n\n### How is port-forward used in practice?\n\n \n\nIt is ideal for debugging and admin tasks. You can reach internal services that are deliberately not exposed to the internet, without changing any configuration.\n\n    \n\n### What should you keep in mind with port-forward?\n\n \n\nThe 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.\n\n    \n\n### What does an example of port-forward look like?\n\n \n\n```\nkubectl port-forward svc/web 8080:80\n```\n\n \n\n## At a glance\n\n   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Kubernetes terms\n\n \n\n- [PersistentVolume (PV)](<https://delaparra-services.nl/knowledge-hub/persistentvolume-pv>) \n- [PersistentVolumeClaim (PVC)](<https://delaparra-services.nl/knowledge-hub/persistentvolumeclaim-pvc>) \n- [Pod](<https://delaparra-services.nl/knowledge-hub/pod-kubernetes>) \n- [QoS classes](<https://delaparra-services.nl/knowledge-hub/qos-classes>) \n- [ReplicaSet](<https://delaparra-services.nl/knowledge-hub/replicaset>) \n- [requests](<https://delaparra-services.nl/knowledge-hub/requests>)\n\n \n\n[All terms starting with P](<https://delaparra-services.nl/knowledge-hub#letter-p>)\n\n \n\n## Skills\n\n \n\n- ### Kubernetes Manifest Generator\n\n \n\nCreate 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.\n\n [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) \n- ### Helm Chart Scaffolding\n\n \n\nDesign, 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.\n\n [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) \n- ### GitOps Workflow\n\n \n\nImplement 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.\n\n [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/port-forward/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) \n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck 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.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/port-forward)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/port-forward",
                "name": "port-forward: Knowledge hub | DeLaParra Services",
                "description": "Tunnel a local port to a Pod or Service port. Lets you hit an internal service from your laptop without exposing it.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#term",
                    "name": "port-forward",
                    "description": "Tunnel a local port to a Pod or Service port. Lets you hit an internal service from your laptop without exposing it.",
                    "termCode": "port-forward",
                    "url": "https://delaparra-services.nl/knowledge-hub/port-forward",
                    "inLanguage": "en",
                    "keywords": "Kubernetes",
                    "dateModified": "2026-11-25T17:46:29+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is port-forward?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is port-forward used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with port-forward?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of port-forward look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "kubectl port-forward svc/web 8080:80"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/k8s-manifest-generator#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/helm-chart-scaffolding#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/gitops-workflow#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "port-forward"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#dataset",
                "name": "port-forward",
                "description": "Tunnel a local port to a Pod or Service port. Lets you hit an internal service from your laptop without exposing it.",
                "url": "https://delaparra-services.nl/knowledge-hub/port-forward",
                "identifier": "https://delaparra-services.nl/knowledge-hub/port-forward#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/port-forward#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Kubernetes",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:29+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "port-forward.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "port-forward.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "port-forward.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "port-forward.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "port-forward.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "port-forward-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/port-forward/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}