Class Config

java.lang.Object
io.kubernetes.client.util.Config

public class Config extends Object
  • Field Details

  • Constructor Details

    • Config

      public Config()
  • Method Details

    • fromCluster

      public static io.kubernetes.client.openapi.ApiClient fromCluster() throws IOException
      Throws:
      IOException
    • fromUrl

      public static io.kubernetes.client.openapi.ApiClient fromUrl(String url)
    • fromUrl

      public static io.kubernetes.client.openapi.ApiClient fromUrl(String url, boolean validateSSL)
    • fromUserPassword

      public static io.kubernetes.client.openapi.ApiClient fromUserPassword(String url, String user, String password)
    • fromUserPassword

      public static io.kubernetes.client.openapi.ApiClient fromUserPassword(String url, String user, String password, boolean validateSSL)
    • fromToken

      public static io.kubernetes.client.openapi.ApiClient fromToken(String url, String token)
    • fromToken

      public static io.kubernetes.client.openapi.ApiClient fromToken(String url, String token, boolean validateSSL)
    • fromConfig

      public static io.kubernetes.client.openapi.ApiClient fromConfig(String fileName) throws IOException
      Throws:
      IOException
    • fromConfig

      public static io.kubernetes.client.openapi.ApiClient fromConfig(InputStream stream) throws IOException
      Throws:
      IOException
    • fromConfig

      public static io.kubernetes.client.openapi.ApiClient fromConfig(Reader input) throws IOException
      Throws:
      IOException
    • fromConfig

      public static io.kubernetes.client.openapi.ApiClient fromConfig(KubeConfig config) throws IOException
      Throws:
      IOException
    • defaultClient

      public static io.kubernetes.client.openapi.ApiClient defaultClient() throws IOException
      Easy client creation, follows this plan
      • If $KUBECONFIG is defined, use that config file.
      • If $HOME/.kube/config can be found, use that.
      • If the in-cluster service account can be found, assume in cluster config.
      • Default to localhost:8080 as a last resort.
      Returns:
      The best APIClient given the previously described rules
      Throws:
      IOException