> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# Kubernetes tools

> Point Helm, the Terraform Kubernetes provider, k9s, and other kubeconfig-driven tools at a Datum Cloud control plane using your active datumctl session.

> [!WARNING]
>
> This guide is for teams that **already run Kubernetes tooling** and want to
> reuse it against Datum Cloud. Datum Cloud itself requires no Kubernetes
> knowledge — you manage organizations, projects, DNS zones, and other
> resources directly with `datumctl get`, `datumctl apply`, `datumctl delete`,
> and friends. If you don't already use these tools, you can skip this page.

Once you generate a kubeconfig entry with `datumctl` — see
[Using kubectl](https://www.datum.net/docs/datumctl/kubectl-interop.md) for the full walkthrough — you get a
standard [kubeconfig](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
whose user is a [client-go exec credential plugin](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins).
That means **any** client-go-based tool that reads a kubeconfig authenticates
to the Datum Cloud control plane the same way kubectl does: it runs `datumctl`
to fetch a fresh, short-lived credential on each request. There are no static
keys to embed and nothing to rotate by hand.

## The one requirement

> [!NOTE]
>
> The machine running the tool must have the `datumctl` binary on its `PATH`
> **and** an active session (an interactive login, or a
> [service account](https://www.datum.net/docs/datumctl/auth/service-accounts.md) for automation).

Because authentication works by executing `datumctl` as an exec credential
plugin, the credential handoff only happens where `datumctl` is installed and
signed in. A tool can read the kubeconfig from anywhere, but the actual token
exchange runs locally through `datumctl`. If `datumctl` isn't on `PATH` or has
no session, the tool will fail to authenticate.

The generated kubeconfig entry is portable across tools, but it references
`datumctl` by name — so keep the binary available in the same environment where
the tool runs. For non-interactive environments, generate the entry with
`--exec-interactive-mode Never` so the exec plugin fails fast instead of
waiting on a prompt that can never be answered (see
[Using kubectl](https://www.datum.net/docs/datumctl/kubectl-interop.md)).

## Generate the kubeconfig first

Every tool below assumes you have already written a kubeconfig entry and
selected it as your current context:

```bash theme={null}
# Log in so datumctl has an active session
datumctl login

# Write a context for the project (or organization) control plane
datumctl auth update-kubeconfig --project your-project-id
```

The full flag reference — `--organization` vs `--project`, `--kubeconfig`,
`--hostname`, and `--exec-interactive-mode` — lives on
[Using kubectl](https://www.datum.net/docs/datumctl/kubectl-interop.md). To keep Datum Cloud entries separate
from your other clusters, write to a dedicated file with `--kubeconfig` and
point each tool at it. See [Contexts & scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md)
for how organization and project scope map to control planes.

## Helm

[Helm](https://helm.sh/) uses the current kubeconfig context by default, so
once your Datum Cloud context is selected, Helm authenticates through
`datumctl` with no extra configuration. As with kubectl, you can point Helm at a
specific file or context:

```bash theme={null}
# Use a dedicated Datum Cloud kubeconfig
helm --kubeconfig ~/.kube/datum-config list

# Or select the context explicitly
helm --kube-context my-datum-context list
```

Refer to the [Helm](https://helm.sh/) documentation for chart and release
management specifics.

## Terraform Kubernetes provider

Configure the
[Terraform Kubernetes provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs)
against your kubeconfig. The simplest form points the provider at the file and
context:

```hcl theme={null}
provider "kubernetes" {
  config_path    = "~/.kube/datum-config"
  config_context = "my-datum-context"
}
```

The provider also supports an `exec` block, which mirrors what
`datumctl auth update-kubeconfig` already writes into the kubeconfig — the
provider invokes `datumctl` to obtain a credential on each apply. Either way,
`datumctl` must be on `PATH` with an active session on the machine (or CI
runner) that runs `terraform`. Consult the
[Terraform Kubernetes provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs)
docs for the full schema.

## k9s and other kubeconfig-driven tools

k9s and similar kubeconfig-driven tools read the same kubeconfig and honor the
`KUBECONFIG` environment variable and current context. Point them at your Datum
Cloud context — for example by exporting `KUBECONFIG` — and they authenticate
through `datumctl` automatically:

```bash theme={null}
export KUBECONFIG=~/.kube/datum-config
k9s
```

The same pattern applies to any tool built on client-go: it reads the
kubeconfig, runs the exec plugin, and talks to the Datum Cloud control plane.
Check each tool's own documentation for how it selects a kubeconfig or context.

## Automation and GitOps

For CI/CD and GitOps, run the tool from a **CI runner or workstation that has
`datumctl` installed and is authenticated with a
[service account](https://www.datum.net/docs/datumctl/auth/service-accounts.md)**. The
[GitHub Actions](https://www.datum.net/docs/datumctl/cicd/github-actions.md) setup action installs `datumctl`
and authenticates a service account for you; see
[Automating in CI/CD](https://www.datum.net/docs/datumctl/cicd/automating.md) for the broader pattern.

> [!WARNING]
>
> Because authentication runs the `datumctl` binary as an exec credential
> plugin, an environment **without** `datumctl` cannot use this flow. A
> controller running inside an unrelated cluster with no `datumctl` binary is
> not covered. Frame [Flux](https://fluxcd.io/) or
> [Argo CD](https://argo-cd.readthedocs.io/) usage as running from CI (or a
> machine) that has `datumctl` plus a service account session — not as an
> in-cluster controller reconciling the Datum Cloud control plane directly.

## Related

* [Using kubectl](https://www.datum.net/docs/datumctl/kubectl-interop.md) — how `datumctl auth update-kubeconfig`
  writes the kubeconfig entry and how the credential handoff works.
* [GitOps with Flux & Argo CD](https://www.datum.net/docs/datumctl/gitops.md) — run a git-driven deployment
  loop onto a Datum Cloud control plane using the same exec-credential kubeconfig.
* [Service accounts](https://www.datum.net/docs/datumctl/auth/service-accounts.md) — non-interactive
  credentials for automated environments.
* [GitHub Actions](https://www.datum.net/docs/datumctl/cicd/github-actions.md) — install and authenticate
  `datumctl` on a CI runner.
* [Automating in CI/CD](https://www.datum.net/docs/datumctl/cicd/automating.md) — the supported topology for
  running these tools from automation.
* [Contexts & scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md) — how organization and
  project scope map to control planes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.