MerlinDMC / noderole

Assign roles and labels to Kubernetes nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI

noderole

noderole is a small statically linked program that can be used to label Kubernetes nodes. In addition to normal labels it will also allow attaching labels in the node-role.kubernetes.io namespace which in return will show up as a role in the kubectl get nodes output.

Installation

Binaries are built using GitHub Actions and can be fetched directly from the releases page. The binaries are all statically linked against musl libc and will run without any additional library dependencies.

Configuration

To configure roles and additional labels to assign to a node noderole will read from a YAML file. By default it will read and assign the config defined in /etc/noderole.yml.

Example

---
# list(string) of roles to assign
roles:
- role1
- role2

# map(string) of additional labels to assign
labels:
  your.namespace/key1: value1
  your.namespace/key2: value2

About

Assign roles and labels to Kubernetes nodes

License:Apache License 2.0


Languages

Language:Rust 89.0%Language:Nix 11.0%