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.

CI Python License


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, and restarting them when they die. 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
  • Pin preferred local ports per service in a TOML config
  • Fallback to a random free port if the preferred port is taken
  • Inform user which services are currently forwarded and on which ports

portfwd demo

Full documentation


📦 export-dotenv — Export env vars from Kubernetes manifests

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 (environment exporter) does it in one command — pick any Deployment or Argo WorkflowTemplate you have access to and get its env vars exported instantly.

  • Fully interactive (fuzzy-search, arrow key navigation)
  • 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 (recommended version 1.36+)

Install

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

# Latest stable release (recommended)
pipx install kubek

# Newest development version
pipx install git+https://github.com/ohmycoffe/kubek.git

If you use pip or another package manager, make sure the installation's bin/ directory is on your PATH — kubectl discovers plugins by scanning PATH for executables prefixed with kubectl-.

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.5.0.tar.gz (21.0 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.5.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kubek-0.5.0.tar.gz
Algorithm Hash digest
SHA256 61f2e172c3533f365f54a82bfd9030212c7721ab0992f1408af3c764d06ebef5
MD5 09a0b6464767a6a4a0c049859f303f22
BLAKE2b-256 38132765f0d08e662c2e20e738609b4cb215244ad91854209929709c72ba62c1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kubek-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 32.3 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fd33d8b384a65e7dafa37080e80469d7e6f2634cab7a48106385a0398826876
MD5 10bb661e4b063de7033d45b4f1d463f6
BLAKE2b-256 0d36aebba4e08859962e92ff46b336f35c4e33ca5cc328c8d748cf14e35f404d

See more details on using hashes here.

Provenance

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