public class KubernetesUtils extends Object
| Constructor and Description |
|---|
KubernetesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultKubernetesMasterUrl()
Computes the default master url based on the
KUBERNETES_SERVICE_HOST and
KUBERNETES_SERVICE_PORT environment variables |
static String |
getTokenFromFile()
Gets the token stored in the
/var/run/secrets/kubernetes.io/serviceaccount/token. |
public static String getDefaultKubernetesMasterUrl()
KUBERNETES_SERVICE_HOST and
KUBERNETES_SERVICE_PORT environment variablespublic static String getTokenFromFile()
/var/run/secrets/kubernetes.io/serviceaccount/token.Copyright © 2016. All rights reserved.