kubek
kubectlplugins 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.
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)
| Resource | Status |
|---|---|
| CronJob | ❌ |
| DaemonSet | ✅ |
| Deployment | ✅ |
| Job | ❌ |
| Pod | ✅ |
| ReplicaSet | ✅ |
| StatefulSet | ✅ |
📦 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
.envor 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
Supported Resources
| Resource | Status |
|---|---|
| ConfigMap | ✅ |
| CronJob | ✅ |
| DaemonSet | ✅ |
| Deployment | ✅ |
| Job | ✅ |
| Pod | ✅ |
| ReplicaSet | ✅ |
| Secret | ✅ |
| StatefulSet | ✅ |
Installation
Prerequisites
- Python 3.11+
kubectlinstalled 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.
Metadata
Release files for kubek 0.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kubek-0.9.8.tar.gz | 42.0 kB | With provenance | Details for kubek-0.9.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kubek-0.9.8-py3-none-any.whl | Python 3 | none | any | Details for kubek-0.9.8-py3-none-any.whl |
Total release size: 110.5 kB
Release files / kubek-0.9.8.tar.gz
| Download URL | kubek-0.9.8.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3782c38d6327f1f72143a7bb53528f282bf9bf06df16d538769abcd24fda54e
|
|
BLAKE2b-256 checksum How to use checksums |
b9074d1be87290afdaefb5fbdd4690aa72d62d828cb4a16c4ba3b3a9a73d118f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / kubek-0.9.8-py3-none-any.whl
| Download URL | kubek-0.9.8-py3-none-any.whl |
|---|---|
| Size | 68.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e51e6def833c4e030ee7b006266dfe2aedad5101b6f5a30fea876fd7c2c8713
|
|
BLAKE2b-256 checksum How to use checksums |
040db44798349454b7e3b42cf495f60638215052cc23c78e8160cd9959495899
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for kubek 0.9.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kubek-0.9.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.