Skip to content

Kubernetes Port-Forward

Port-forward Deployments, StatefulSets, Services, and Pods with multi-tunnel management.

Kubernetes port-forward

Workloads table with namespace, ports, and forward status.

KeePass

Path: k8sportforward/<env>/<cluster>

Field Meaning
kubeconfig path or inline YAML
kubeconfig_path alias for path
kubeconfig_data alternate inline data
context context name
namespace default namespace filter
URL / UserName / Password unused for most clusters
omo secrets put k8sportforward/development/playground \
  --attr kubeconfig=~/.kube/omo-playground.yaml \
  --attr context=kind-omo-playground \
  --attr namespace=demo

Views

Key View
0 Workloads
1 Services
2 Pods
3 Forwards
4 Namespaces
5 Ports

Actions (highlights)

Key Action
++F++ Start forward
++X++ Stop forward
++A++ Stop all (Forwards view)
++E++ Details
++C++ Connection info
++P++ Suggest free local port

Playground tip

Forward demo workloads, then point Redis/Postgres plugins at 127.0.0.1:<local-port>.

Tags

kubernetes · networking · port-forward · devops