cilium-etcd-watchdog

command module
v0.0.0-...-36ec4c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

README

cilium-etcd-watchdog

A watchdog for Cilium's etcd.

The purpose of this watchdog is to delete ETCD Cluster k8s resources when the quorum is lost or of unknown state for significant amount of time. It was created because cilium-etcd-operator isn't handling quorum lost because of state correctness concerns which in our use case are not relevant.

It is expected that other subjects will create the cluster once its deleted, for example Flux.

Algorithm details

Watchdog algorithm sits in endless loop that triggers in time intervals (controlled via polling-interval flag, default 10 sec).

It loops waiting for cilium ETCD cluster to become available for maximum of bootstrap grace period (controlled via cluster-bootstrap-grace-period flag, default 2 min).

After bootstrap period expires the watchdog will check ETCD cluster quorum status. If quorum is lost it will delete ETCD Cluster k8s resources. If the quorum state is unknown the loop will be repeated for number of times (controlled by max-quorum-status-check-failures flag, default 3) after which, if cluster quorum is still in the unknown state, it will delete ETCD Cluster k8s resources.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL