Package io.micronaut.kubernetes.health
Class KubernetesHealthIndicator
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.management.health.indicator.HealthIndicator
@Singleton
@Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Requires(env="k8s") @Requires(property="hostname")
public class KubernetesHealthIndicator
extends io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
Health indicator to show the current Pod information.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
Fields inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
executorService, healthStatus
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionKubernetesHealthIndicator
(io.micronaut.kubernetes.client.reactor.CoreV1ApiReactorClient client, KubernetesConfiguration configuration) Constructor. -
Method Summary
Methods inherited from class io.micronaut.management.health.indicator.AbstractHealthIndicator
getHealthResult, getResult, setExecutorService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Field Details
-
NAME
- See Also:
-
HOSTNAME_ENV_VARIABLE
- See Also:
-
HOSTNAME_ENV_VARIABLE_IN_PROPERTY_FORMAT
- See Also:
-
-
Constructor Details
-
KubernetesHealthIndicator
public KubernetesHealthIndicator(io.micronaut.kubernetes.client.reactor.CoreV1ApiReactorClient client, KubernetesConfiguration configuration) Constructor.- Parameters:
client
- The Kubernetes clientconfiguration
- The Kubernetes configuration
-
-
Method Details