K8s.Conn (k8s v1.0.0-rc1) View Source
Handles authentication and connection configuration details for a Kubernetes cluster.
Link to this section Summary
Types
cluster_name- The cluster name if read from a kubeconfig fileuser_name- The user name if read from a kubeconfig fileurl- The Kubernetes API URL
Functions
Reads configuration details from a kubernetes config file.
Generates configuration from kubernetes service account.
Link to this section Types
Specs
t() :: %K8s.Conn{
auth: auth_t(),
ca_cert: String.t() | nil,
cluster_name: String.t() | nil,
discovery_driver: module(),
discovery_opts: Keyword.t(),
http_provider: module(),
insecure_skip_tls_verify: boolean(),
middleware: K8s.Middleware.Stack.t(),
url: String.t(),
user_name: String.t() | nil
}
cluster_name- The cluster name if read from a kubeconfig fileuser_name- The user name if read from a kubeconfig fileurl- The Kubernetes API URL
Link to this section Functions
Specs
Reads configuration details from a kubernetes config file.
Defaults to current-context.
Options
contextsets an alternate contextclusterset or override the cluster read from the contextuserset or override the user read from the contextdiscovery_drivermodule name to use for discoverydiscovery_optsoptions for discovery module
Specs
Generates configuration from kubernetes service account.