Kazan v0.7.0 Kazan.Server View Source

Kazan.Server is a struct containing connection details for a kube server.

Link to this section Summary

Functions

Parses Kube server details from a provided kubeconfig file

Server that will connect to the cluster that kazan is running on

Link to this section Types

Link to this type t() View Source
t() :: %{
  url: String.t(),
  insecure_skip_tls_verify: Boolean.t(),
  ca_cert: String.t() | nil,
  auth: auth_t()
}

Link to this section Functions

Link to this function from_kubeconfig(config_file, options \\ []) View Source
from_kubeconfig(String.t(), Keyword.t()) :: t()

Parses Kube server details from a provided kubeconfig file.

Will use the current-context provided in the file by default, though this and other details can be overridden via options

Note: any default namespaces provided in the kubecontext will be ignored.

Options

  • context can be used to override the default context we pull from the file.
  • user can be used to override the default user we pull from the file.
  • cluster can be used to override the default cluster we pull from the file.
Link to this function in_cluster(options \\ []) View Source
in_cluster(Keyword.t()) :: t()

Server that will connect to the cluster that kazan is running on.

This will speak to the server via the kubernetes domain name, using the service account credentials that are stored on the filesystem.

See the Kubernetes documentation for more information.