Class Fabric8PodUtils

java.lang.Object
org.springframework.cloud.kubernetes.fabric8.Fabric8PodUtils
All Implemented Interfaces:
org.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>

public class Fabric8PodUtils extends Object implements org.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>
Utility class to work with pods.
Author:
Ioannis Canellos
  • Field Details

    • HOSTNAME

      public static final String HOSTNAME
      HOSTNAME environment variable name.
      See Also:
    • KUBERNETES_SERVICE_HOST

      public static final String KUBERNETES_SERVICE_HOST
      KUBERNETES_SERVICE_HOST environment variable name.
      See Also:
  • Constructor Details

    • Fabric8PodUtils

      public Fabric8PodUtils(io.fabric8.kubernetes.client.KubernetesClient client)
  • Method Details

    • currentPod

      public Supplier<io.fabric8.kubernetes.api.model.Pod> currentPod()
      Specified by:
      currentPod in interface org.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>
    • isInsideKubernetes

      public boolean isInsideKubernetes()
      Specified by:
      isInsideKubernetes in interface org.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>