k8s:fwd — config-based kubernetes multi-port forwarding

A tool for handling port-forwards to multiple services and across multiple clusters.

Configuration

If no configuration file is specified when starting the application, it will recursively look for a .k8sfwd file in the current directory hierarchy. If a file is specified on program launch, this configuration is used instead.

```yaml

version: 0.1.0 config: # Optional: Number of seconds to wait before attempting to re-establish # a broken connection. retrydelaysec: 5.0 targets: - name: Test API (Staging) # Optional, for display purposes. target: foo # The name of the resource to forward to. type: service # Can be service, deployment or pod. namespace: bar # The namespace of the resource. context: null # Optional; will default to current context. cluster: null # Optional; will default to current cluster. ports: - "5012:80" # Forward resource port 80 to local port 5012. - "8080" # Forward resource port 8080 to random local port. - name: Test API (Production) target: foo-59b58f5d68-6t6bh type: pod namespace: bar cluster: production listen_addrs: # Select the listen addresses; defaults to localhost. - "127.1.0.1" ports: - "5012:80" ```