Package io.kubernetes.client.util
Class Config
java.lang.Object
io.kubernetes.client.util.Config
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.kubernetes.client.openapi.ApiClient
Easy client creation, follows this plan If $KUBECONFIG is defined, use that config file.static io.kubernetes.client.openapi.ApiClient
static io.kubernetes.client.openapi.ApiClient
fromConfig
(KubeConfig config) static io.kubernetes.client.openapi.ApiClient
fromConfig
(InputStream stream) static io.kubernetes.client.openapi.ApiClient
fromConfig
(Reader input) static io.kubernetes.client.openapi.ApiClient
fromConfig
(String fileName) static io.kubernetes.client.openapi.ApiClient
static io.kubernetes.client.openapi.ApiClient
static io.kubernetes.client.openapi.ApiClient
static io.kubernetes.client.openapi.ApiClient
static io.kubernetes.client.openapi.ApiClient
fromUserPassword
(String url, String user, String password) static io.kubernetes.client.openapi.ApiClient
fromUserPassword
(String url, String user, String password, boolean validateSSL)
-
Field Details
-
SERVICEACCOUNT_ROOT
- See Also:
-
SERVICEACCOUNT_CA_PATH
- See Also:
-
SERVICEACCOUNT_TOKEN_PATH
- See Also:
-
SERVICEACCOUNT_NAMESPACE_PATH
- See Also:
-
ENV_KUBECONFIG
- See Also:
-
ENV_SERVICE_HOST
- See Also:
-
ENV_SERVICE_PORT
- See Also:
-
DEFAULT_FALLBACK_HOST
- See Also:
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
fromCluster
- Throws:
IOException
-
fromUrl
-
fromUrl
-
fromUserPassword
-
fromUserPassword
-
fromToken
-
fromToken
-
fromConfig
- Throws:
IOException
-
fromConfig
public static io.kubernetes.client.openapi.ApiClient fromConfig(InputStream stream) throws IOException - Throws:
IOException
-
fromConfig
- Throws:
IOException
-
fromConfig
public static io.kubernetes.client.openapi.ApiClient fromConfig(KubeConfig config) throws IOException - Throws:
IOException
-
defaultClient
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
-