Service-Hub icon indicating copy to clipboard operation
Service-Hub copied to clipboard

How to determine service health status

Open vadim-zabolotniy opened this issue 2 years ago • 0 comments

We have method to determine Kubernetes entity healthy or not.

We have block that determines health status of entity with kind: Service:

if self.kind == K8sKinds.service:
    if self.specification['type'] == 'LoadBalancer':
        ingress = self.status.get('load_balancer', {}).get('ingress')
        return ingress is not None

Problem here is that we do not determine health status for services that have spec.type != LoadBalancer.

vadim-zabolotniy avatar Aug 03 '22 13:08 vadim-zabolotniy