Skip to main content

kubectl extensions

Project description

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, or Deployments — 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

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 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

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.

Project details


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.8.1.tar.gz (33.4 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.8.1-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kubek-0.8.1.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubek-0.8.1.tar.gz
Algorithm Hash digest
SHA256 97e77171a0f2cc0bb505f540df15c8f7d8e8e9087eac595f595a2d111e817596
MD5 5dbfa1ec6f0f324502d5c301527d5ef2
BLAKE2b-256 afdc833bc8153991f0ce6b8e8079e7ab6c3d4786f2d71a2efd7eed81b477cc98

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubek-0.8.1.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.8.1-py3-none-any.whl.

File metadata

  • Download URL: kubek-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubek-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23b9cc9ad9f8a8a81e65c29bcf75dc9128b9a82e8972e67d343a3ad28fb2120f
MD5 0fcd46d0965ce40d2d3cb0258c5763ce
BLAKE2b-256 86a1e90870dd57f0759d28c641023807fa8d9bc83f143956ac27be4c381e9b4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubek-0.8.1-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page