Documentation
¶
Index ¶
Constants ¶
View Source
const ComponentName = "loadwatcher"
View Source
const TaintKey = "loadwatcher.mittwald.systems/load-exceeded"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadThresholdEvent ¶
type PodCandidate ¶
type PodCandidateSet ¶
type PodCandidateSet []PodCandidate
func PodCandidateSetFromPodList ¶
func PodCandidateSetFromPodList(l *v1.PodList) PodCandidateSet
func (PodCandidateSet) Len ¶
func (s PodCandidateSet) Len() int
func (PodCandidateSet) Less ¶
func (s PodCandidateSet) Less(i, j int) bool
func (PodCandidateSet) SelectPodForEviction ¶
func (s PodCandidateSet) SelectPodForEviction() *v1.Pod
func (PodCandidateSet) Swap ¶
func (s PodCandidateSet) Swap(i, j int)
type Tainter ¶
type Tainter struct {
// contains filtered or unexported fields
}
func NewTainter ¶
func NewTainter(c kubernetes.Interface, nodeName string) (*Tainter, error)
func (*Tainter) IsNodeTainted ¶
func (*Tainter) TaintNode ¶
func (t *Tainter) TaintNode(evt LoadThresholdEvent) error
func (*Tainter) UntaintNode ¶
func (t *Tainter) UntaintNode(evt LoadThresholdEvent) error
type Watcher ¶
type Watcher struct { TickerInterval time.Duration LoadThreshold float64 // contains filtered or unexported fields }
func NewWatcher ¶
func (*Watcher) Run ¶
func (w *Watcher) Run(closeChan chan struct{}) (<-chan LoadThresholdEvent, <-chan LoadThresholdEvent, <-chan error)
Click to show internal directories.
Click to hide internal directories.