New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kubectlpf

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kubectlpf

Batch utility for port-forwarding in Kubernetes

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

Kubectlpf

A small cli utility to do batch forwarding for kubectl pods. With auto-restart feature if pod (or network) appears to be dead.

Installation

npm i kubectlpf -g

Usage:

kubectlpf [<podname[:port]>]... [--namepsace=<namespace>] [--kubeconfig=<file>] [--exclude=<podname>...] [--health-interval=<number>]

Note that pod name accepts partial naming match, e.g. you pod name is car-service, you may just type kubctlpf car. Port is optional if you have pods config which should be stored in ~/kube/pods.json. It should have podname: port format:

{
    "somepod": "3000"
}

If no podname is provided the script will search for local pods.json (same podname: port format), and run port forward for all of them. Use exclude param to exclude some of them for that case. Use health-interval to set custom health check interval in milliseconds (default is 5000).

FAQs

Package last updated on 18 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts