{
  "id": "kubernetes-port-forward-table",
  "kind": "table",
  "slug": "kubernetes-port-forward",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/kubernetes-port-forward/",
  "title": "kubectl port-forward tunnels a local port to a port on a Pod for debugging",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "kubectl port-forward",
      "source": "Kubernetes docs",
      "detail": "does not return. Open another terminal to keep working."
    },
    {
      "name": "pod/mypod 5000 6000",
      "source": "Kubernetes docs",
      "detail": "listens on ports 5000 and 6000 locally and forwards data to/from the same ports in the pod."
    },
    {
      "name": "service/myservice 8443:https",
      "source": "Kubernetes docs",
      "detail": "forwards to a pod selected by the service, using the targetPort of its port named \"https\"."
    }
  ],
  "related_slugs": [
    "kubernetes-services",
    "kubernetes-kubectl-basics",
    "kubernetes-pods"
  ],
  "license": "CC-BY-4.0",
  "source_license": "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}