Service-Hub
Service-Hub copied to clipboard
How to determine service health status
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
.