> ## 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.

# Private-only deployment

> Run e6data on Azure with no public endpoint, no public IP and a private Kubernetes API, reached only over your private network.

How-to guideApplies to: CloudPrem on Azure

You can run e6data with no public endpoint, no public IP and a private Kubernetes API. Users reach it over your private network. The cluster still needs one outbound path to the e6data control plane, because private connectivity to the control plane is not offered today.

![Private-only e6data deployment on Azure: an internal load balancer and private AKS API in your VNet, private endpoints for storage and registry, and one outbound path through your firewall to the e6data control plane](https://mintcdn.com/e6data/btk547UQntSoisHC/images/platform/in-vpc/azure-private-only.svg?fit=max\&auto=format\&n=btk547UQntSoisHC\&q=85\&s=477b1187dc9aa528db8ee2efac868c39)

## Requirements

* An internal load balancer (or NodePort behind your own load balancer) for the workspace endpoint.
* A DNS record for the workspace hostname in a zone your users resolve, pointing at the private address.
* A private Kubernetes API, and an install host inside your network.
* One outbound path to the e6data control plane on TCP 443: NAT or your firewall.
* Private access to cloud services the cluster uses: service and private endpoints.
* The AKS cluster identity needs Network Contributor on the VNet, or subnet read and join on the AKS subnet. Without it the internal load balancer stays `<pending>` (see [Permissions reference](https://docs.e6data.com/platform/deploy/azure-cloudprem/permissions-reference.md)).
* If you filter inbound (NSG or network policy), allow the load balancer health-probe source `168.63.129.16` (service tag `AzureLoadBalancer`) to the endpoint Service's health-check node port. With the Local traffic policy (the operator default), Azure probes that port on the nodes, not 443 or 5432. Find it with [Check the endpoint Service](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md#check-the-endpoint-service-before-writing-firewall-rules).

| Item | Azure | Required? | Why |
| - | - | - | - |
| Workspace endpoint | Internal load balancer in the AKS subnet | Yes | No public address |
| Who may connect | NSG on the AKS subnet | Yes | Otherwise the endpoint is open to the whole VNet |
| Kubernetes API | Private cluster | Yes | No public API |
| Egress without NAT | Route `0.0.0.0/0` to your firewall (user-defined routing) | Conditional | Under a "no public IP" policy, NAT can't be used |
| Data access | `dfs` and `blob` private endpoints, or service endpoint | Yes | Data stays on private paths |

> [!WARNING]
>
> On Azure, a policy that denies public IPs blocks the default install steps that create a NAT gateway public IP and a public load balancer. Use firewall egress and an internal load balancer from the start.

## Steps

**1. Make the workspace endpoint internal**

The workspace endpoint Service must be an internal load balancer (or a NodePort behind your own private load balancer). By default the install creates a public, internet-facing load balancer open to all source addresses, so set this before install. In the **Apply the QueryRouter** step of [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/azure-cloudprem/deploy-workspace.md), add this line under `mergedService.annotations`, next to the two annotations already there:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
        service.beta.kubernetes.io/azure-load-balancer-internal: "true"
```

For a workspace that is already running, add it to the live QueryRouter. The endpoint moves to a private address, so update your DNS record afterwards:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl -n ${NAMESPACE} patch queryrouter ${WORKSPACE_NAME}-qr --type merge -p '{
  "spec": {"auth": {"mergedService": {"annotations": {
    "service.beta.kubernetes.io/azure-load-balancer-internal": "true"
  }}}}}'
```

The internal load balancer gets a private address from the AKS subnet in about 1 minute.

Alternative: set `type: NodePort` and put your own load balancer in front. Also set `externalTrafficPolicy: Cluster`. With the default (`Local`), only the nodes running Envoy answer. The two node ports (for 443 and 5432) are random and can't be set today, so read them after install. Your load balancer's backend pool must include every node.

**2. Set up DNS**

The workspace hostname must resolve to the private address for your users. For example, create the workspace hostname in an Azure private DNS zone, or your internal DNS, and point it at the internal load balancer.

**3. Make the Kubernetes API private**

The Kubernetes API must have no public endpoint. For a new cluster:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
az aks create ... --enable-private-cluster
```

For an existing cluster (one-way, restarts the cluster, changes the API server IP, needs AKS Standard tier):

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
az aks update -g <RG> -n <CLUSTER> --enable-private-cluster \
  --enable-apiserver-vnet-integration --apiserver-subnet-id <API_SERVER_SUBNET_ID>
```

Behind a hub DNS proxy, the default private DNS zone fails. Use `--private-dns-zone none` or a zone linked to the hub (see [Connect to other networks](https://docs.e6data.com/platform/deploy/azure-cloudprem/connect-to-other-networks.md)).

New nodes must resolve `privatelink.<region>.azmk8s.io`. With your own DNS servers, forward that zone to `168.63.129.16` or use Azure DNS Private Resolver. If nodes can't resolve the API server, they never join and clusters don't start. A private AKS cluster takes about 15 minutes to create.

**4. Run installs from inside your network**

Use a bastion host, a CI runner in the VNet, a VPN, or Azure Bastion. You can also run commands with `az aks command invoke`.

**5. Send egress through your firewall, with no NAT**

Outbound traffic must route to your firewall. For example, route `0.0.0.0/0` from the AKS subnet to your firewall and create the cluster with `--outbound-type userDefinedRouting`. Allow the destinations on [Hostnames and ports](https://docs.e6data.com/platform/deploy/azure-cloudprem/hostnames-and-ports.md).

**6. Set up private data access**

Storage must be reached over private or service endpoints. For example, create `dfs` and `blob` private endpoints for each storage account. Make `privatelink.dfs.core.windows.net` and `privatelink.blob.core.windows.net` resolvable from the AKS subnet. Grant Storage Blob Data Reader to e6data's engine identity at container scope. No account keys are needed.

## Cost impact

* Azure private endpoints are billed per hour and per GB. Azure Firewall is billed per hour and per GB.
* Removing the NAT gateway removes its hourly and per-GB charge.

## Preflight check

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
az aks show -g <RG> -n <CLUSTER> --query "{private:apiServerAccessProfile.enablePrivateCluster,outbound:networkProfile.outboundType}"
az policy assignment list --scope <RG_ID> -o table      # look for a deny on public IPs
```

If an endpoint from the table is missing, create it before install. If a deny-public-IP policy exists, use firewall egress and an internal load balancer.

## Verify

From **outside** your network:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
dig +short <WORKSPACE_HOSTNAME>          # a private IP (10.x, 172.16-31.x or 192.168.x)
curl -m 10 https://<WORKSPACE_HOSTNAME>/ # fails: not reachable
kubectl get nodes                        # fails: API endpoint not public
```

From **inside** your network:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://<WORKSPACE_HOSTNAME>/       # HTTP 200
nc -z <WORKSPACE_HOSTNAME> 5432          # port open
```

Then sign in to the e6data console from your network, resume a cluster, run a query and find it in Query History. The workspace shows **Running**, which arrives through outbound calls only. Also check that the install created no public IP: `az network public-ip list -g <NODE_RG> -o table` returns nothing.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Endpoint Service stays `<pending>` | Policy denies the public IP of the default load balancer | Add the internal load balancer annotation |
| Internal load balancer stays `<pending>` | AKS cluster identity can't join the AKS subnet | Grant Network Contributor on the VNet, or subnet read and join on the AKS subnet |
| NodePort refuses connections on most nodes | `externalTrafficPolicy: Local` | Set it to `Cluster` |
| New nodes never join a private cluster | Nodes can't resolve the API server's private zone | Forward the zone to `168.63.129.16` or link it to your resolver |

## Limitations

* Private connectivity to the e6data control plane (Private Link): Not offered today. The cluster needs an outbound path on 443.
* A fully air-gapped network: Not supported today.

## See also

* [Network requirements](https://docs.e6data.com/platform/deploy/azure-cloudprem/network-requirements.md)
* [Egress firewall, proxy and TLS inspection](https://docs.e6data.com/platform/deploy/azure-cloudprem/proxy-and-tls-inspection.md)
* [Connect to other networks](https://docs.e6data.com/platform/deploy/azure-cloudprem/connect-to-other-networks.md)
* [Isolated reference architecture](https://docs.e6data.com/platform/deploy/azure-cloudprem/reference-architecture-isolated.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.