Skip to content

Feature Request: Kubernetes Tunnels #44

Description

@knpwrs

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions