Class KubernetesHealthIndicator

java.lang.Object
io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
io.micronaut.kubernetes.health.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") @Requires(property="endpoints.health.kubernetes.enabled",notEquals="false") 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 Details

  • Constructor Details

    • KubernetesHealthIndicator

      public KubernetesHealthIndicator(io.micronaut.kubernetes.client.reactor.CoreV1ApiReactorClient client, KubernetesConfiguration configuration)
      Constructor.
      Parameters:
      client - The Kubernetes client
      configuration - The Kubernetes configuration
  • Method Details

    • getHealthInformation

      protected Map<String,Object> getHealthInformation()
      Specified by:
      getHealthInformation in class io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>
    • getName

      protected String getName()
      Specified by:
      getName in class io.micronaut.management.health.indicator.AbstractHealthIndicator<Map<String,Object>>