Package org.hobbit.utils.kubernetes
Class KubeHelper
java.lang.Object
org.hobbit.utils.kubernetes.KubeHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final HobbitConfigurationprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DOMAIN_SUFFIX
- See Also:
-
HC
-
-
Constructor Details
-
KubeHelper
public KubeHelper()
-
-
Method Details
-
getDnsFriendlyIP
Gets a DNS-friendly IP for the pod.- Returns:
- DNS-friendly hostname (or IP address if not available).
-
getPodIP
Retrieves the pod's IP address.- Returns:
- The IP address of the pod, or "unknown" if retrieval fails.
-
formatDnsFriendlyIp
Formats the IP into a DNS-friendly format for Kubernetes.- Parameters:
ip- The pod's IP address.namespace- The namespace in which the pod is running.- Returns:
- A DNS-friendly hostname.
-