K8s.Client
K8s.Client is deprecated and has been merged into k8s
elixir client.
K8s.Client - Kubernetes client in elixir
Installation
If available in Hex, the package can be installed
by adding k8s
to your list of dependencies in mix.exs
:
def deps do
[
{:k8s_client, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/k8s.
Before starting the client you must start a Router:
K8s.Client.Router.start("path/to/your/k8s/swagger.json")
K8s.Client.get("v1", :pod, name: "nginx", namespace: "default")
Notes
K8s.Client never assumes the "default" namespace. A namespace is always required when applicable to an operation.
Client path generation does not currently support:
connect
operationsscale
operationsfinalize|bindings|approval
operations
No plans to support deprecated watch
functions.
See a full list of removed operations here.