-
-
Notifications
You must be signed in to change notification settings - Fork 259
LED Statuses #112
Comments
So I think, in order to get this working with the PoE HATs in place, I'm going to go with a pre-fabbed solution, the BlinkStick Nano. It has a python library which should be (hopefully) easy enough to wire up: https://github.com/arvydas/blinkstick-python One pattern that could work is to have a DeamonSet running a pod on each node which just sets the LED status. The pod could have a cluster role that gets node status or something, maybe? See some docs here: https://kubernetes.io/docs/tasks/debug-application-cluster/monitor-node-health/ It would be really nice if there were some pre-hardwired way to just run a command on the node itself and say "hey, am I joined and |
Just playing around with the BlinkStick Nano I received in the mail today on my Mac:
Worked great, this seems pretty spiffy! Note that if I set the mode to 1, it seems to never let me change it back to 2 or 3. Not sure what mode 1 is used for. Upstream issue: arvydas/blinkstick-python#59 |
So for the simplistic purposes of this issue, I would want:
|
Additionally, I would like to have a few Ansible playbooks I can run which show how orchestration works—e.g. turn all green, turn all blue. Then do it serially, then in sets of two... |
Tasks remaining:
|
Created issue to ask about Kubernetes node status monitoring: How can I check a Kubernetes node's status from the node itself? |
So maybe a Python script / systemctl service that runs and checks every 10s if that URL returns Also the |
Follow-up issue #143 for the other scripts. For now I have a totally-awesome |
For the Kubernetes cluster, it might be more interesting to set LEDs based on the Kubernetes node status (e.g. what you get with
kubectl get nodes
).Ready
NotReady
(or any other status for now?)The text was updated successfully, but these errors were encountered: