Class KubernetesClientPodUtils

java.lang.Object
org.springframework.cloud.kubernetes.client.KubernetesClientPodUtils
All Implemented Interfaces:
org.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>

public class KubernetesClientPodUtils extends Object implements org.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>
Author:
Ryan Baxter
  • 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

    • KubernetesClientPodUtils

      public KubernetesClientPodUtils(io.kubernetes.client.openapi.apis.CoreV1Api client, String namespace)
  • Method Details

    • currentPod

      public Supplier<io.kubernetes.client.openapi.models.V1Pod> currentPod()
      Specified by:
      currentPod in interface org.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>
    • isInsideKubernetes

      public boolean isInsideKubernetes()
      Specified by:
      isInsideKubernetes in interface org.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>