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

Forwarding ports to Kubernetes services usually means running a separate kubectl port-forward command for each service, keeping track of which local port maps to what. portfwd (port forward) replaces all of that with a single interactive command — pick your services, and it handles the rest.

  • Fuzzy-search namespaces and services interactively
  • Forward multiple services simultaneously in one command
  • Live status table with real-time updates when a process dies
  • Deterministic port allocation: same service always gets the same port across multiple runs (either from config pinning or intelligent assignment)

portfwd demo

Full documentation


📦 export-dotenv — Export env vars from cluster resources

Getting credentials out of a running deployment usually means digging through kubectl get deployment -o yaml, copying values by hand, and reformatting them into a .env file. export-dotenv does it in one command — pick any Deployment or Argo WorkflowTemplate in your cluster and get its env vars exported instantly (including values resolved from ConfigMaps and Secrets).

  • Interactive resource picker (kind and name; namespace comes from your kubectl context)
  • Output as .env or JSON
  • Pipe directly: kubectl export-dotenv ... > .env to produce a dotenv file

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.7.0.tar.gz (28.6 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.7.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kubek-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5f0e2555f5c030fead4b946a33ed9a222a6f6e3d75f7e4c876af0a0b62cb07f3
MD5 2f90346b0a893adbccfb013e7aeeb160
BLAKE2b-256 24686e866f2e0a01eb17a4752d309475a5bd9b26b89a0aa0eac91cff68e5782c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kubek-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 47.9 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c437cf3dfb42791d9a70fb946a18a2effba6289d0b91e7006a8d90655f68c089
MD5 cc6b4dc08f16c7d5bf66309528d31714
BLAKE2b-256 0b983935973bbbc14fd5b4d99b7bfc59e37c15cc3a769116ea98c43ad538df49

See more details on using hashes here.

Provenance

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