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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesClientPodUtils(io.kubernetes.client.openapi.apis.CoreV1Api client, String namespace) -
Method Summary
-
Field Details
-
HOSTNAME
Hostname environment variable name.- See Also:
-
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
- Specified by:
currentPodin interfaceorg.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>
-
isInsideKubernetes
public boolean isInsideKubernetes()- Specified by:
isInsideKubernetesin interfaceorg.springframework.cloud.kubernetes.commons.PodUtils<io.kubernetes.client.openapi.models.V1Pod>
-