Skip to content

A tool to mark nodes under some nodepools unschedulable and privileging other nodepools near cluster autoscaler

Notifications You must be signed in to change notification settings

hightoxicity/k8s-nodepool-cordon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-nodepool-cordon

A tool to mark nodes under some nodepools unschedulable and allow to prioritize other nodepools near cluster autoscaler

Usage

Binary usage

./k8s-nodepool-cordon -kubeconfig /path/to/.kube/config -cordon-np "mynodepool-1,mynodepool-2" -prioritize-np "mybackupnodepool-1,mybackupnodepool-2"

Docker usage

docker run --mount type=bind,source="${HOME}"/.kube/config,target=/root/.kube/config djnos/k8s-nodepool-cordon:v1.0.2 -cordon-np "mynodepool-1,mynodepool-2" -prioritize-np "mybackupnodepool-1,mybackupnodepool-2"

Verbose mode

./k8s-nodepool-cordon -kubeconfig /path/to/.kube/config -cordon-np "mynodepool-1,mynodepool-2" -prioritize-np "mybackupnodepool-1,mybackupnodepool-2" -v=4

About

A tool to mark nodes under some nodepools unschedulable and privileging other nodepools near cluster autoscaler

Resources

Stars

Watchers

Forks

Packages

No packages published