Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Address Labeler

The purpose of this project is to automatically add labels to nodes for ip addresses on a specified interface.
This program works by watching the specified interface and adding/removing labels with the prefix of "node.ip/".
For example if the IP address 192.168.100.123/32 is added to our interface, then node.ip/192-168-100-123: "present" is added to the node.
When the IP address is removed then the label is removed.

I made this to automatically add IP address labels for use with Cilium Egress Gateway and Kube-vip.

Running

When running make sure the following env vars are specified.

INTERFACE="eth0"
NODE_NAME="node01"

About

add k8s node ip addresses as labels

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages