View Source K8s (k8s v1.1.5)

Kubernetes API Client for Elixir

Link to this section Summary

Functions

Returns the default CAStore

Returns the default driver for discovery.

Returns default opts for the discovery driver. This is also configurable per K8s.Conn

Returns the default HTTP Provider

Link to this section Functions

@spec default_cacertfile() :: module()

Returns the default CAStore

Link to this function

default_discovery_driver()

View Source
@spec default_discovery_driver() :: module()

Returns the default driver for discovery.

Each K8s.Conn can have its own driver set. If unset, this value will be used.

Defaults to K8s.Discovery.Driver.HTTP

example-mix-config

Example mix config

In the example below dev and test clusters will use the File driver, while prod will use the HTTP driver.

Cluster names can be atoms or strings, but are internally stored as strings.

use Mix.Config

config :k8s,
  discovery_driver: K8s.Discovery.Driver.File,
  discovery_opts: [config: "test/support/discovery/example.json"]
Link to this function

default_discovery_opts()

View Source
@spec default_discovery_opts() :: Keyword.t()

Returns default opts for the discovery driver. This is also configurable per K8s.Conn

@spec default_http_provider() :: module()

Returns the default HTTP Provider