Add a mode = "kubernetes" (alias "k8s") so a cluster port-forward can be declared alongside SSH tunnels in .boring.toml and managed with the same open/close/list/group commands.
Example:
# forward a local port to a Service in the cluster
[[tunnels]]
name = "api"
mode = "kubernetes"
local = "8080"
remote = "svc/api:8080"
context = "staging"
namespace = "backend"
# forward to a specific Pod, current context/namespace
[[tunnels]]
name = "worker"
mode = "k8s"
local = "9000"
remote = "pod/worker-0:9000"
# group k8s + ssh tunnels together so `boring open -g dev` brings up everything
[[tunnels]]
name = "db"
mode = "kubernetes"
local = "5432"
remote = "svc/postgres:5432"
context = "dev"
group = "dev"
Add a mode = "kubernetes" (alias "k8s") so a cluster port-forward can be declared alongside SSH tunnels in .boring.toml and managed with the same open/close/list/group commands.
Example: