Collection of Kubernetes command-line utilities
Project description
k8s-utils
A collection of Kubernetes command-line utilities built with Python and Typer.
Installation
This project uses uv for package management. Make sure you have uv and uvx installed.
Just testing it out:
# Install dependencies
uvx k8s-helpers --help
Installation
uv tool install k8s-helpers
This installs the k8s-helpers command and the shorthand k8sh
Commands
podcount
Count non-daemonset pods per node in the current Kubernetes context.
# Use current context
k8sh podcount --help
# Specify a different context
k8sh podcount --context my-context
# Show nodegroup and zone labels, and sort by nodegroup
k8sh podcount \
--node-labels "eks.amazonaws.com/nodegroup" \
--node-labels "topology.kubernetes.io/zone" \
--sort "eks.amazonaws.com/nodegroup" \
--show-taints
This command:
- Retrieves all pods and nodes in the cluster
- Excludes pods managed by DaemonSets
- Displays a table showing pod count per node
- Shows total non-DaemonSet pod count
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file k8s_helpers-1.0.9.tar.gz.
File metadata
- Download URL: k8s_helpers-1.0.9.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
630d7d1591551764c8749d4d49308f12bca4d11bf060d0239ee24569b4a7f6c9
|
|
| MD5 |
535b24d41c7815e664c9f6496998473e
|
|
| BLAKE2b-256 |
089dc307516001cbf5ceb6af7d3b6cb32cf8971b7a34dbcad8e308f59fa3c061
|
Provenance
The following attestation bundles were made for k8s_helpers-1.0.9.tar.gz:
Publisher:
ci.yml on trondhindenes/k8s-helpers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
k8s_helpers-1.0.9.tar.gz -
Subject digest:
630d7d1591551764c8749d4d49308f12bca4d11bf060d0239ee24569b4a7f6c9 - Sigstore transparency entry: 655006338
- Sigstore integration time:
-
Permalink:
trondhindenes/k8s-helpers@e367b2892843d3c659109acd56fb19a1c45cbcf7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trondhindenes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@e367b2892843d3c659109acd56fb19a1c45cbcf7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file k8s_helpers-1.0.9-py3-none-any.whl.
File metadata
- Download URL: k8s_helpers-1.0.9-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
150f7b1a389b21198927429a15bf5989d8df05c677ef23aa704f0a1b3cddf932
|
|
| MD5 |
d77d96d1dd24bf45631349c410a78c0c
|
|
| BLAKE2b-256 |
f6861a024bc0e759bc97d0370404c8efa3fcf3d151a428cae1027209c6835ff9
|
Provenance
The following attestation bundles were made for k8s_helpers-1.0.9-py3-none-any.whl:
Publisher:
ci.yml on trondhindenes/k8s-helpers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
k8s_helpers-1.0.9-py3-none-any.whl -
Subject digest:
150f7b1a389b21198927429a15bf5989d8df05c677ef23aa704f0a1b3cddf932 - Sigstore transparency entry: 655006351
- Sigstore integration time:
-
Permalink:
trondhindenes/k8s-helpers@e367b2892843d3c659109acd56fb19a1c45cbcf7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trondhindenes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@e367b2892843d3c659109acd56fb19a1c45cbcf7 -
Trigger Event:
push
-
Statement type: