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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HOSTNAME
HOSTNAME environment variable name.- See Also:
-
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
- Specified by:
currentPodin interfaceorg.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>
-
isInsideKubernetes
public boolean isInsideKubernetes()- Specified by:
isInsideKubernetesin interfaceorg.springframework.cloud.kubernetes.commons.PodUtils<io.fabric8.kubernetes.api.model.Pod>
-