View Source Vault.Auth.Kubernetes (libvault v0.2.4)

Kubernetes Auth Adapter.

Vault Docs

Link to this section Summary

Functions

Login with your Kubernetes role and JWT. Defaults the auth path to kubernetes

Link to this section Functions

Login with your Kubernetes role and JWT. Defaults the auth path to kubernetes

examples

Examples

# Atom map
{:ok, token, ttl} = Vault.Auth.Kubernetes.login(vault, %{role: "my-role", jwt: "my-jwt"})

# String Map
{:ok, token, ttl} = Vault.Auth.Kubernetes.login(vault, %{"role" => "my-role", "jwt" => "my-jwt"})