Node Labeler for Kubernetes
Go to file
okozachenko 9f265beb2b Fix the logic to check compute node
and add unit test for it

Change-Id: Icb7691c1f520a357f214b8cae19a748c278b22c9
2020-07-23 17:51:01 +03:00
.gitreview Added .gitreview 2020-07-02 16:29:12 +00:00
.zuul.yaml Add retry mechanism against api connection fail 2020-07-04 00:35:24 +03:00
bindep.txt Add retry mechanism against api connection fail 2020-07-04 00:35:24 +03:00
Dockerfile Add retry mechanism against api connection fail 2020-07-04 00:35:24 +03:00
go.mod Fix the logic to check compute node 2020-07-23 17:51:01 +03:00
go.sum Fix the logic to check compute node 2020-07-23 17:51:01 +03:00
main.go Fix the logic to check compute node 2020-07-23 17:51:01 +03:00
manifest.yaml Add retry mechanism against api connection fail 2020-07-04 00:35:24 +03:00
README.md Add retry mechanism against api connection fail 2020-07-04 00:35:24 +03:00
units_test.go Fix the logic to check compute node 2020-07-23 17:51:01 +03:00

Node labeler

Zuul

This is a very small tool that can run as a DaemonSet inside your Kubernetes cluster which will automatically label your nodes based on the product and vendor. This can help with things like running specific monitoring tools on specific hardware.

This is an example of labeled Dell PowerEdge machine:

Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/os=linux
                    kubernetes.io/arch=amd64
                    kubernetes.io/hostname=<snip>
                    kubernetes.io/os=linux
                    node-role.kubernetes.io/master=
                    node.vexxhost.com/product=poweredge-r640
                    node.vexxhost.com/vendor=dell-inc

In addition, we provide a very simple manifest attached inside this repository which helps you setup a service account that is locked down to only GET and PATCH nodes in the Kubernetes API with the code for a DaemonSet. It shouldn't require any changes to get going on your cluster.