k8s v0.3.2 K8s.Conf

Handles authentication and connection configuration details for a Kubernetes cluster.

Link to this section Summary

Functions

Reads configuration details from a kubernetes config file.

Generates configuration from kubernetes service account

Link to this section Types

Link to this type

t()
t() :: %K8s.Conf{
  auth: auth_t(),
  ca_cert: String.t() | nil,
  cluster_name: String.t() | nil,
  insecure_skip_tls_verify: boolean(),
  url: String.t(),
  user_name: String.t() | nil
}

Link to this section Functions

Link to this function

from_file(config_file, opts \\ [])
from_file(binary(), keyword()) :: K8s.Conf.t()

Reads configuration details from a kubernetes config file.

Defaults to current-context.

Options

  • context sets an alternate context
  • cluster set or override the cluster read from the context
  • user set or override the user read from the context
Link to this function

from_service_account()
from_service_account() :: K8s.Conf.t()

Generates configuration from kubernetes service account

kubernetes.io :: Accessing the API from a Pod

Link to this function

from_service_account(root_sa_path)
from_service_account(String.t()) :: K8s.Conf.t()