View Source K8s (k8s v1.1.1)
Kubernetes API Client for Elixir
Link to this section Summary
Link to this section Functions
Specs
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"]
Specs
default_discovery_opts() :: Keyword.t()
Returns default opts for the discovery driver. This is also configurable per K8s.Conn
Specs
default_http_provider() :: module()
Returns the default HTTP Provider