Skip to main content

kubek

kubectl plugins for friendlier Kubernetes interactions.

kubek (kubernetes extension kit) is a collection of CLI tools that plug into kubectl and add interactive, developer-friendly shortcuts on top of it.

Python License CI coverage


Plugins

🔌 portfwd — Interactive port forwarding

portfwd (port forward) manages many kubectl port-forward sessions as one. You choose what to forward — Services, Pods, Deployments, StatefulSets, DaemonSets, or ReplicaSets — and it runs and supervises every session under a single live dashboard.

At its core it does three things:

  • Select targets — interactively, via -t, or from a spec file (example)
  • Forward them all at once — the same target always gets the same local port across new runs
  • Supervise them — a live status view with automatic reconnection
kubectl portfwd # interactive mode
kubectl portfwd -t ns1/svc/auth-service -t ns2/pod/worker-xyz # via CLI options (no prompts)
kubectl portfwd -f .portfwd-plan # via spec file (no prompts)

portfwd demo

Resource Status
CronJob
DaemonSet
Deployment
Job
Pod
ReplicaSet
StatefulSet

Full documentation


📦 export-dotenv — Export env vars from cluster resources

export-dotenv reads the environment of a running Kubernetes resource and hands it back ready to use — no manual YAML digging or copy-paste.

At its core it does three things:

  • Pick a resource — a Deployment, StatefulSet, DaemonSet, ReplicaSet, Job, CronJob, or Argo WorkflowTemplate, interactively or by flag
  • Resolve its full environment — including values referenced from ConfigMaps and Secrets
  • Emit it as .env or JSON — to stdout for piping
kubectl export-dotenv
kubectl export-dotenv --kind deployment --name my-service --namespace prod > .env
kubectl export-dotenv --kind workflowtemplate --name my-workflow --output json

export-dotenv demo

Supported Resources

Resource Status
ConfigMap
CronJob
DaemonSet
Deployment
Job
Pod
ReplicaSet
Secret
StatefulSet

Full documentation


Installation

Prerequisites

  • Python 3.11+
  • kubectl installed and configured with cluster access

Install

The recommended way to install kubek is with pipx or uv, which installs it in an isolated environment and automatically makes the plugin executables available on your PATH:

pipx

pipx install kubek

uv

uv tool install kubek

Verify

After installing, confirm both plugins are available:

kubectl portfwd --help
kubectl export-dotenv --help

See each plugin's README for full usage details.


License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubek-0.9.7.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubek-0.9.7-py3-none-any.whl (68.4 kB view details)

Uploaded Python 3

File details

Details for the file kubek-0.9.7.tar.gz.

File metadata

  • Download URL: kubek-0.9.7.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kubek-0.9.7.tar.gz
Algorithm Hash digest
SHA256 aee3e080a88e590d4d4bc720b6cfb68578cd99fea213a3a23a811f31e691e6a6
MD5 54575543696e315855d73f1fce765d01
BLAKE2b-256 038f532b988c09b52ef749b13687a3a59f5e3e812e9a6a9130207859ec64c016

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubek-0.9.7.tar.gz:

Publisher: release.yml on ohmycoffe/kubek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kubek-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: kubek-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 68.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kubek-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bd57c32010914d9c600d1871a047805b7c414b62b4904c9e1a230e77e5bd1110
MD5 b6f6b9b73829fc7a03601594b9de97ab
BLAKE2b-256 ca05aad83943d19df61b181ecf7bfd040011a23ed2aa978d25c0377d71d41bc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubek-0.9.7-py3-none-any.whl:

Publisher: release.yml on ohmycoffe/kubek

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.9.7 This release

2 files

0.9.6

2 files

0.9.5

2 files

0.8.2

2 files

0.8.1

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page