Skip to main content

kubeleds

Monitor your kubernetes clusters using NeoPixel LEDS!

Hardware

Raspberry PI (any model that supports GPIO)

Currently using a Raspberry PI 4b 2GB. Preparing a Raspberry PI Zero W

NeoPixel LED Strips, 12mm Diffussed bulbs

alt text

alt text

alt text

Usage

  1. cd into project directory.

  2. Create a virtual environment.

$ make venv
  1. Activate it.
$ source venv/bin/activate
  1. Install development dependencies with editable mode to test the CLI.
$ make install

Take kubeleds for a spin

This will basic command line functionality

$ kubeledscli init

This will retrieve node status and set the leds base off of status of each node, testing each status condition (ready, cpu, memory, disk)

$ kubeledscli get_cluster_nodes '[api fqdn]' \
    '[your token]' 'True' 'get_cluster_nodes' \
    'set_leds' 'get_cluster_nodes' 'Ready' \
    'set_leds' 'get_cluster_nodes' 'MemoryPressure' \
    'set_leds' 'get_cluster_nodes' 'DiskPressure' \
    'set_leds' 'get_cluster_nodes' 'PIDPressure' \
    'set_leds' 'get_cluster_nodes' 'Ready' \

The above commands will retrieve cluster node status and set an led frame per status condition, 1 led per node.

GREEN: Node Ready BLUE: CPU Good CYAN: Memory good Purple: Disk Good

Test with Docker

CLI commands can be tested with Docker.

  1. Build an image for the CLI.

    Image is tagged with the same name as the cli_command.

$ make docker-image
  1. Run the command inside the container.
$ docker-run --rm kubeledscli init

Documentation

  1. Install documentation-related dependencies.
$ make docs
  1. Serve the docs locally.
$ make serve-docs

Distribution

NOTE

Make sure you have account in PyPI before you try this out.

To publish you CLI to PyPI, run:

$ make distributions

dist directory will be created inside your project directory. Upload it to PyPI using:

$ twine dist/*

Help

For help related to make commands.

$ make help

Metadata

Release files for kubeleds 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubeleds 0.0.1
File Size Uploaded Provenance Actions
kubeleds-0.0.1.tar.gz 6.8 kB Without provenance Details for kubeleds-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kubeleds 0.0.1
File Interpreter ABI Platform Actions
kubeleds-0.0.1-py3-none-any.whl Python 3 none any Details for kubeleds-0.0.1-py3-none-any.whl

Total release size: 17.2 kB

Release files / kubeleds-0.0.1.tar.gz

Download URL kubeleds-0.0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ace56b10db1e2c675a123e200e1556c971d9f76c6123bc4db3ad07591d2989b5
BLAKE2b-256 checksum
How to use checksums
55f7163d53d451b29fd0ac393844201e1e5180167d7bf248fcc1c6e0839c8fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.3

Release files / kubeleds-0.0.1-py3-none-any.whl

Download URL kubeleds-0.0.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd26d9392c8f5ffd04fe67e3dd1d2b488ae15211681cc0d9e32ba7ec7ed7f5b
BLAKE2b-256 checksum
How to use checksums
ef771af67949e55eda19a9f6a35d38b18794d9713a9339b872a21341d630909a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.3

Security for kubeleds 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page