An open API service indexing awesome lists of open source software.

https://github.com/urcomputeringpal/nuc-node-led-controller

A Kubernetes DaemonSet designed for clusters of NUCs. Updates the LED Ring to reflect the status of the node.
https://github.com/urcomputeringpal/nuc-node-led-controller

intel-nuc kubernetes kubernetes-node nuc

Last synced: 5 months ago
JSON representation

A Kubernetes DaemonSet designed for clusters of NUCs. Updates the LED Ring to reflect the status of the node.

Awesome Lists containing this project

README

          

# Nuc Node LED Controller

A few models of Intel NUCs have a dope [software-controllable LED](https://github.com/milesp20/intel_nuc_led) on their front panel. This is a Kubernetes controller that makes that LED reflect the status of the Kubernetes node running on that NUC.

![img_2094](https://user-images.githubusercontent.com/47/43054516-8d2d9d56-8df7-11e8-9be7-b79962212441.jpg)

## Default LED Settings

|Node Status |LED Ring |
|--------------|---------------|
|Ready |Solid green |
|Unschedulable |Pulsing yellow |
|Not Ready |Pulsing red |
|Error |Blinking red |

These can be be tweaked to your liking by editing [the `nuc-node-led-controller` configmap](./config/kubernetes/default/configmaps/nuc-node-led-controller.yaml).

## Installation

The Kubernetes manifests in [`config/kubernetes/default`](./config/kubernetes/default) will create a [ClusterRole](./config/kubernetes/default/clusterroles/nuc-node-led-controller.yaml) that allows this controller to get/list/watch Nodes and a [DaemonSet](./config/kubernetes/default/daemonsets/nuc-node-led-controller.yaml) that runs a copy of [`main.go`](./main.go) on each node.

* Install https://github.com/milesp20/intel_nuc_led on each of your NUCs
* Install [Skaffold](https://github.com/GoogleContainerTools/skaffold)

```
go get github.com/urcomputeringpal/nuc-node-led-controller
cd $GOPATH/github.com/urcomputeringpal/nuc-node-led-controller
skaffold deploy
```