Skip to content

gezb/node-drainer

Repository files navigation

node-drainer

This kubernetes controller will drain nodes specified by the NodeDrain CR

apiVersion: k8s.gezb.co.uk/v1
kind: NodeDrain
metadata:
  name: nodedrain-node1
spec:
  nodeName: node1
  disableCordon: false # optional
  waitForPodsToRestart: true # optional

The controller includes another CR DrainCheck which will cause the controller to check there are no pods that match the given regex before allowing draining

apiVersion: k8s.gezb.co.uk/v1
kind: DrainCheck
metadata:
  name: draincheck-blocking
spec:
  podregex: ^blocking-.*

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published