io.vertx.servicediscovery.kubernetes

## Class KubernetesUtils

- java.lang.Object
- - io.vertx.servicediscovery.kubernetes.KubernetesUtils

-     public class KubernetesUtils
      extends Object

  Utility methods for Kubernetes.
  Author:
    Clement Escoffier

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KubernetesUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KubernetesUtils

          public KubernetesUtils()

  - ### Method Detail

    - #### getDefaultKubernetesMasterUrl

          public static String getDefaultKubernetesMasterUrl()

      Computes the default master url based on the `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT` environment variables
      Returns:
        the computed url

    - #### getTokenFromFile

          public static String getTokenFromFile()

      Gets the token stored in the `/var/run/secrets/kubernetes.io/serviceaccount/token`.
      Returns:
        the token

Copyright © 2017. All rights reserved.