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

# Install with your own tooling

> The four parts of an In-VPC install on Azure, the end state each must reach, and what to know when you build it with Terraform, Pulumi, Bicep or GitOps.

ReferenceApplies to: CloudPrem on Azure

An e6data In-VPC install has four parts: cloud infrastructure, cluster components (once per cluster), the workspace (once per workspace), then a first query. This page describes the end state each part must reach, in order, and what your own tooling must build. The exact commands are in the step-by-step guides: [Configure registry, Kubernetes, and networking](https://docs.e6data.com/platform/deploy/azure-cloudprem/configure-registry-kubernetes-networking.md) (Parts 1 and 2) and [Deploy workspace](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md) (Part 3).

## Before you start

* The [preflight checks](https://docs.e6data.com/platform/deploy/azure-cloudprem/preflight-checks.md) are complete.
* You have sent e6data the items it needs, and you have the items e6data gives you: tenant name, release package (CRDs and Helm charts), image tags, registry access, and the control-plane settings. See [Prerequisites](https://docs.e6data.com/platform/deploy/azure-cloudprem/prerequisites.md).
* Quota increases are requested early. They can take time. See [Sizing and cost](https://docs.e6data.com/platform/deploy/azure-cloudprem/sizing-and-cost.md).
* Tools on the machine you install from: Azure CLI, `kubectl`, `helm`, `jq` and `envsubst`.

> [!WARNING]
>
> In zsh (the macOS default shell), run `setopt interactive_comments` before pasting commands. Without it, inline `#` comments in the guides can abort a block with a parse error.

## How you install

There is no install screen in the e6data console. You install with commands you run yourself, in one of two ways:

| Path | What you do | When to use |
| - | - | - |
| Step-by-step guides | Run the commands in [Configure registry, Kubernetes, and networking](https://docs.e6data.com/platform/deploy/azure-cloudprem/configure-registry-kubernetes-networking.md), then [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md), in order | Most installs. Each step shows the command and the result to expect |
| Your own tooling | Build the end state below with Terraform, Pulumi, CloudFormation or Bicep, Helm or GitOps (see [Build with your own tooling](#build-with-your-own-tooling)) | Your team must own the code, or your policy requires infrastructure as code |

Both paths create the same end state. Check the Azure subscription and region before you run anything.

Both paths cover Parts 1 to 3. You do Part 4 (catalog, query cluster, first query) in the workspace once it shows **Running**.

## End state, part by part

Each table lists what must exist when the part is done. Build it with the step-by-step guides or your own tooling. Each part has a check on [Verify the deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/verify-deployment.md).

### Part 1: Cloud infrastructure

If you use an existing VNet or an existing cluster, those items already exist. The checklists are in [Use an existing cluster](https://docs.e6data.com/platform/deploy/azure-cloudprem/use-existing-cluster.md).

| Area | Must exist |
| - | - |
| Network | Resource group, VNet, AKS subnet and NAT gateway |
| Cluster | AKS cluster with OIDC issuer and Workload Identity on (Azure CNI overlay with Cilium); the cluster identity has network access on the VNet |
| Node provisioning | Your choice of engine node provisioning: static node pool, Node Auto-Provisioning (NAP) or e6data's Karpenter |
| Image access | AcrPull for the kubelet identity (same Entra tenant as e6data's registry), or the pull secret e6data issues (any tenant) |
| Metadata storage | The metadata storage account (Data Lake Storage Gen2) |
| Workspace identity | One workspace managed identity with 5 federated credentials against the cluster's OIDC issuer, and its storage roles |

Roles and permissions are listed in the [Permissions reference](https://docs.e6data.com/platform/deploy/azure-cloudprem/permissions-reference.md). Network sizes are in [Network requirements](https://docs.e6data.com/platform/deploy/azure-cloudprem/network-requirements.md).

> [!NOTE]
>
> Decided at setup: the cluster's network choices can't be changed later. Hierarchical namespace on the metadata storage account can't be turned off once it's on. An account without it can be upgraded to it one way, if eligible ([Microsoft: upgrade to Data Lake Storage Gen2](https://learn.microsoft.com/en-us/azure/storage/blobs/upgrade-to-data-lake-storage-gen2-how-to)). See [Change network settings later](https://docs.e6data.com/platform/deploy/azure-cloudprem/change-network-settings.md) and [Backup and disaster recovery](https://docs.e6data.com/platform/upgrades/backup-and-disaster-recovery.md).

### Part 2: Cluster components (once per cluster)

| Component | Must exist |
| - | - |
| Node provisioning | e6data's Karpenter or NAP, as chosen in Part 1 |
| Autoscaling add-ons | KEDA and VPA (e6data's managed install only, not in the install steps) |
| Storage | The `managed-csi-e6` StorageClass, as the cluster default |
| Load balancing | Built into AKS |
| Certificates | cert-manager |
| e6data operator | The e6-operator CRDs and controller (2 replicas), and the control-plane verifier value from onboarding |

e6data's install creates no operator NodePool: the operator, cert-manager, KEDA and VPA run on the AKS system pool. After Part 2, expect no NodePool (or `e6operator` if you created one yourself).

With the install steps, install charts with `helm upgrade --install`. e6data's managed install renders them with `helm template` and applies them server-side, which avoids Helm's 1 MB release-record limit; GitOps tools that render charts can do the same.

> [!WARNING]
>
> If the control-plane verifier value is missing, calls from e6data's control plane fail with HTTP 401 and nothing else reports an error.

### Part 3: Workspace (once per workspace)

| Item | Must exist |
| - | - |
| Namespace | `${NAMESPACE}`, matching the federated credentials' subject |
| TLS certificate | e6data's certificate (e6data hostname), your own, Let's Encrypt, or Azure Key Vault |
| Node settings | The two NodeClass and NodePool pairs (engine, and platform with taint `e6data-node-type=platform`), with e6data's Karpenter or NAP |
| Workspace objects | Service accounts and RBAC, the NamespaceConfig, the UsageStack (Query History and audit), the QueryRouter; MonitoringServices if you turn telemetry on; the NVMe setup DaemonSet for NVMe VM families; AccessToken (optional) |
| DNS | A record for the workspace hostname pointing at the load balancer |

After Part 3, expect `<ws>-nodepool` per workspace (and `<ws>-platform-nodepool` with e6data's managed install).

> [!WARNING]
>
> The UsageStack is required. Without it the Query History page stays empty. Its pods run on a small node (4 or 8 vCPU) in the workspace node pool, so that pool must allow one of those sizes.

> [!WARNING]
>
> Don't use a self-signed certificate beyond a throwaway test. Browsers reject it.

### Part 4: First query

The install is done when, in the e6data console, a catalog is registered, a query cluster reaches **Running** (engine nodes start from zero), a query runs in the SQL Editor, and it appears in Query History. See [Register a catalog](https://docs.e6data.com/platform/deploy/azure-cloudprem/register-catalog.md), [Create a cluster](https://docs.e6data.com/platform/deploy/azure-cloudprem/create-cluster.md) and [Run your first query](https://docs.e6data.com/platform/deploy/azure-cloudprem/run-first-query.md). The checks are on [Verify the deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/verify-deployment.md).

## Build with your own tooling

You can build e6data with your own Terraform, Pulumi, Bicep or GitOps tool. The install has no tool requirement: the tables above and below list the end state, so any tool can build it.

e6data doesn't publish a Terraform module or Bicep template for In-VPC today. e6data's public Terraform scripts are for its earlier deployment model, which gives e6data access to your subscription. Don't use them for In-VPC.

### Requirements

* Your tool builds the same end state as the step-by-step guides.
* Runtime objects that the e6data console creates must stay out of your tool's state (see [What must not be in Git or IaC](#what-must-not-be-in-git-or-iac)).
* Objects you add (tags, images, policies) must be re-applied if you re-run the e6data templates over them.

### End state per layer

Exact values live on the owning pages. This table says what has to exist.

| Layer | Must exist | Values on |
| - | - | - |
| Network | VNet, AKS subnet, NAT gateway, no overlap with pod or service ranges | [Network requirements](https://docs.e6data.com/platform/deploy/azure-cloudprem/network-requirements.md), [IP address sizing](https://docs.e6data.com/platform/deploy/azure-cloudprem/ip-address-sizing.md) |
| Private endpoints (no NAT) | Private endpoints for storage and registry, with private DNS zones `privatelink.blob.core.windows.net`, `privatelink.dfs.core.windows.net`, `privatelink.azurecr.io` and, for a private cluster, `privatelink.<region>.azmk8s.io`. Private endpoints don't remove egress: outbound 443 to the e6data control plane, `assets.e6.run`, `login.microsoftonline.com`, the AKS FQDN-tag hosts and the API server IP is still needed | [Private-only deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/private-only-deployment.md), [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md) |
| Cluster | AKS with OIDC issuer and Workload Identity, Azure CNI overlay with Cilium, system pool, engine node provisioning | [Component versions and operations](https://docs.e6data.com/platform/deploy/azure-cloudprem/component-versions-and-operations.md), [Node provisioning](https://docs.e6data.com/platform/deploy/azure-cloudprem/node-provisioning.md) |
| Identity | Workspace managed identity with 5 federated credentials; Karpenter identity if used; role assignments | [Permissions reference](https://docs.e6data.com/platform/deploy/azure-cloudprem/permissions-reference.md) |
| Storage and keys | Metadata storage account and container, read role on data storage accounts | [Encryption at rest](https://docs.e6data.com/platform/trust/encryption-at-rest.md) |
| Kubernetes | Operator chart values, workspace namespace, two NodeClass and NodePool pairs (engine and platform), NetworkPolicies. e6data's install also adds KEDA and VPA (on by default, can be turned off) and makes its `managed-csi-e6` StorageClass the cluster default | [Architecture](https://docs.e6data.com/platform/deploy/azure-cloudprem/architecture.md) |
| Workspace objects | NamespaceConfig, QueryRouter, service accounts and RBAC, optional MonitoringServices, optional AccessToken | [Deploy workspace](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md) |

> [!NOTE]
>
> Decided at setup: hierarchical namespace on the metadata storage account can't be turned off once it's on. An account without it can be upgraded to it one way, if eligible ([Microsoft: upgrade to Data Lake Storage Gen2](https://learn.microsoft.com/en-us/azure/storage/blobs/upgrade-to-data-lake-storage-gen2-how-to)). Choose it in your template before the first apply. See [Backup and disaster recovery](https://docs.e6data.com/platform/upgrades/backup-and-disaster-recovery.md).

### GitOps (Flux or Argo CD)

Requirements for any GitOps tool:

* e6data's CRDs are applied once, server-side, before the operator chart. They ship as their own chart.
* The operator chart and the workspace objects (Namespace, service accounts and RBAC, NamespaceConfig, QueryRouter) can live in Git.
* Your GitOps tool can pull e6data's charts and images, usually from your own mirror.
* With the AKS Flux extension, the region's AKS extension endpoint is allowed outbound (see [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md)).

With the AKS Flux extension, Flux took over a running install from Git, rolled out Git changes and reverted manual edits. The operator did not fight Flux: it only writes `status` on the objects you keep in Git. Two things needed care:

* Kubelet-identity login to the registry failed, so a registry token was used.
* Hand-written Kustomizations needed a `flux-applier` service account with a binding, because the extension enforces multi-tenancy.

The build steps are in the step-by-step guides.

#### Created once outside Git

* The workspace TLS certificate.
* The Karpenter bootstrap token (every Karpenter option).
* The control-plane verifier secret.
* The registry pull credential for your GitOps tool.
* GitOps bootstrap objects.

Supply these through your own secret tooling.

#### What must not be in Git or IaC

The console creates these at run time. Declaring them in Git makes your tool and the operator overwrite each other.

* Query clusters
* The metadata service
* Release definitions
* The console's sign-in signing key
* Access policies created in the console

Objects the operator creates carry an owner reference to an e6data resource (NamespaceConfig, QueryService, QueryRouter, MetadataServices). Use that to exclude them, for example Argo CD `resource.exclusions`.

> [!WARNING]
>
> If the workspace Namespace is in your GitOps inventory with pruning on, removing it from Git deletes the namespace and every run-time object in it, including query clusters.

Tag and image policies for your own templates are covered in [Your organization's policies](https://docs.e6data.com/platform/deploy/azure-cloudprem/organization-policies.md).

### Preflight check

* Plan or diff with your tool and confirm no run-time object from the list above is in its state.
* Server-side dry run of the workspace objects: `kubectl apply --dry-run=server -f <workspace-manifests>`. Expected: no errors.

### Verify

1. Change one value in Git (for example the QueryRouter maximum replicas). Expected: the change rolls out, and the operator applies it.
2. Edit the same object by hand with `kubectl`. Expected: your GitOps tool reverts it at the next sync.
3. Resume a cluster and run a query ([Verify the deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/verify-deployment.md)). Expected: the query cluster and metadata service survive the next GitOps syncs unchanged.

## Cost impact

* Part 1 creates billable resources before any query runs: NAT gateway, system nodes and the load balancer.
* Engine nodes scale to zero when clusters suspend. See [Sizing and cost](https://docs.e6data.com/platform/deploy/azure-cloudprem/sizing-and-cost.md).

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Flux Kustomizations fail with `Forbidden` (AKS Flux extension) | The extension enforces multi-tenancy and the default applier account is missing | Create the `flux-applier` service account and binding, or bootstrap with the extension's own configuration |
| Chart pull from your registry fails with an empty client ID (AKS Flux extension) | Kubelet-identity login to the registry failed | Use a registry token |
| An object flips back and forth between two values | Both your tool and the operator own it | Remove operator-created objects from your tool |

For other problems see [Troubleshooting](https://docs.e6data.com/platform/deploy/azure-cloudprem/troubleshooting.md).

## Limitations

* The AKS Flux extension is the validated GitOps tool. Argo CD and Terraform or Pulumi modules have not been validated end to end.
* A Git-first install from empty (Git before any manual install) has not been validated. Adopting an existing install into Git is the validated path.
* Running e6data's CRDs as their own separate GitOps unit has not been validated.

## See also

* [Verify the deployment](https://docs.e6data.com/platform/deploy/azure-cloudprem/verify-deployment.md)
* [Permissions reference](https://docs.e6data.com/platform/deploy/azure-cloudprem/permissions-reference.md)
* [Architecture](https://docs.e6data.com/platform/deploy/azure-cloudprem/architecture.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md)


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