0

Is there any way to configure elastic heartbeat to automatically detect the ingress resources in a cluster and run a simple health-check against each of them ?

Otherwise, what would be a simple alternative to that ? Like an operator that subscribes to Ingress resources events and for each of the active Ingress resources run a GET on a preconfigured health-check endpoint.

4

1 回答 1

0

好的,基于当前的心跳(实际上对所有心跳都通用)代码库,我认为没有。

    switch config.Resource {
case "pod":
    p.eventer, err = NewPodEventer(uuid, c, client, p.publish)
case "node":
    p.eventer, err = NewNodeEventer(uuid, c, client, p.publish)
case "service":
    p.eventer, err = NewServiceEventer(uuid, c, client, p.publish)
default:
    return nil, fmt.Errorf("unsupported autodiscover resource %s", config.Resource)
}
于 2020-01-26T13:55:26.273 回答