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

# Azure AKS

> Deploy a tracebloc secure environment on Azure Kubernetes Service.

**When to pick it** — You're on Azure and want managed Kubernetes with autoscaling and GPU node pools.

## Prerequisites

* An AKS cluster, and `kubectl` pointed at it (`az aks get-credentials …`).
* **Helm 3.14 or later** (Helm 4 works).
* The [tracebloc CLI](https://docs.tracebloc.io/environment-setup/cli.md#install), signed in (`tracebloc login`). It creates your secure environment's **Client ID** and password; see [Configuration → Authentication](https://docs.tracebloc.io/environment-setup/configuration.md#authentication).

## Install

```bash theme={null}
tracebloc client create --credential-file tb.env   # Client ID, password and namespace, see below
helm repo add tracebloc https://tracebloc.github.io/client
helm repo update
helm show values tracebloc/client > values.yaml   # edit per below
. ./tb.env
helm upgrade --install "$TRACEBLOC_NAMESPACE" tracebloc/client \
  -n "$TRACEBLOC_NAMESPACE" --create-namespace -f values.yaml
```

Before the last command, copy the Client ID and password from `tb.env` into `values.yaml` (see [Configuration → Authentication](https://docs.tracebloc.io/environment-setup/configuration.md#authentication)). The chart goes into the namespace `tb.env` names, with the release named after it: that is where tracebloc CLI commands on this machine look for your secure environment. Delete `tb.env` after the install.

## Verify

```bash theme={null}
kubectl get pods -n "$TRACEBLOC_NAMESPACE"
```

Pods `Running`, and on [My Secure Environment](https://ai.tracebloc.io/secure-environment) your secure environment reads **Active now** under its name.

## Environment-specific config

Use Azure Files for shared storage:

```yaml theme={null}
storageClass:
  create: true
  provisioner: file.csi.azure.com
  parameters:
    skuName: Standard_LRS
  mountOptions: [dir_mode=0750, file_mode=0640, uid=999, gid=999, mfsymlinks, cache=strict, actimeo=30]
clusterScope: true
```

* **NetworkPolicy:** create the AKS cluster with `--network-policy azure` (Azure NPM) or Calico — otherwise the training-pod egress lockdown won't enforce.
* `metrics-server` is bundled on AKS.
* **GPU or CPU-only.** In the `env` block of `values.yaml`, declare what your nodes have. Without `GPU_LIMITS`, every training pod requests one NVIDIA GPU, and on CPU-only nodes it stays `Pending`:

  ```yaml theme={null}
  env:
    TRACEBLOC_DDP: "1"           # from the chart's env block; keep it
    GPU_LIMITS: ""               # CPU-only nodes. For NVIDIA GPUs: "nvidia.com/gpu=1"
  ```

  The chart's `values.yaml` writes `env` in braces (`env: { … }`), where a new line without a comma is a YAML error. Replace that whole block with the one above, and carry over any other keys you've set.

  With GPUs, use x86\_64 nodes with an NVIDIA GPU of the Turing generation or newer ([GPU support](https://docs.tracebloc.io/environment-setup/setup-guide.md#gpu-support)). The nodes also need the NVIDIA device plugin. Install it yourself, or let the chart run it:

  ```yaml theme={null}
  gpu:
    devicePlugin:
      enabled: true
      vendor: nvidia
  ```

## Production notes

* Use GPU node pools for training workloads, with the NVIDIA device plugin running on them (see above); size requests/limits per job.
* Day-2 upgrades and rollbacks: see [Operations](https://docs.tracebloc.io/environment-setup/operations.md).


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