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

# Verify the deployment

> Check each part of an In-VPC deployment on AWS, from Pod Identity to a first query in Query History.

How-to guideApplies to: CloudPrem on AWS

Each check below proves one requirement. Run them as you go, not only at the end. The deployment is working when a cluster resumes from the e6data console, a SQL query runs, and the query appears in Query History.

## Requirements

* `kubectl` access to the cluster and read access to the AWS account.
* The variables from the install (`CLUSTER_NAME`, `REGION`, `WORKSPACE_NAME`, `NAMESPACE`, `CONSOLE_HOSTNAME`). The namespace can differ from the workspace name, so the commands below use `NAMESPACE`.

## Steps

### Check that cloud identity is in place (OIDC and Pod Identity)

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws eks describe-cluster --name ${CLUSTER_NAME} \
  --query "{k8s:cluster.version, oidc:cluster.identity.oidc.issuer}" --output yaml
for ID in $(aws eks list-pod-identity-associations --cluster-name ${CLUSTER_NAME} \
    --namespace ${NAMESPACE} --region ${REGION} --query 'associations[].associationId' --output text); do
  aws eks describe-pod-identity-association --cluster-name ${CLUSTER_NAME} --region ${REGION} \
    --association-id $ID --query 'association.[serviceAccount,roleArn]' --output text
done
```

The list call doesn't return the role, so the loop describes each association.

Expected:

* The version is in the supported range (see [Component versions and operations](https://docs.e6data.com/platform/deploy/aws-cloudprem/component-versions-and-operations.md)).
* An OIDC issuer URL is present.
* There are 5 associations: `<workspace>-engine` and `<workspace>-laminar` to the engine role, `<workspace>-console` to the console role, and `<workspace>-copilot` and `<workspace>-metriq` to the app role. The monitoring and query router service accounts have none.

> [!WARNING]
>
> An OIDC issuer or Pod Identity that is off breaks the workspace without a clear error. Check it first.

### Check that cluster components are running

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get pods -n kube-system -l app.kubernetes.io/name=karpenter
kubectl get pods -n kube-system -l app.kubernetes.io/name=aws-load-balancer-controller
kubectl get pods -n cert-manager
kubectl get pods -n e6operator
kubectl get crds | grep e6data.io
kubectl get nodepools.karpenter.sh
kubectl get ec2nodeclasses.karpenter.k8s.aws
```

Expected:

* Karpenter, cert-manager (3 pods: controller, cainjector, webhook) and the load balancer controller are `Running`.
* The e6-operator shows **2** pods `Running`. Keep 2: with 1, node drains block during cluster upgrades (see [Product and cluster upgrades](https://docs.e6data.com/platform/upgrades/product-and-cluster-upgrades.md)).
* The e6data CRDs are listed.
* If you followed the install steps, an `e6operator` NodePool is listed, and after the workspace step `<workspace>-nodepool`. (e6data's managed install instead runs the operator, cert-manager, KEDA and VPA on the system node group and adds a `<workspace>-platform-nodepool`.)

If you use the cluster autoscaler instead of e6data's Karpenter, skip the Karpenter checks.

### Check that the workspace is up and reachable

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get pods -n ${NAMESPACE}
kubectl get namespaceconfig -n ${NAMESPACE} -o wide
kubectl get queryrouter -n ${NAMESPACE} -o wide
kubectl get svc -n ${NAMESPACE}
curl -sv https://${CONSOLE_HOSTNAME} 2>&1 | grep -E "subject:|HTTP/"
```

Expected:

* `console`, Envoy and xDS pods are `Running`. Monitoring collector pods are `Running` if you turned monitoring on.
* Metadata pods (`mds-schema`, `mds-storage`) appear within 3 to 4 minutes of the NamespaceConfig. The operator waits 60 seconds before it creates them.
* The `<workspace>-qr-envoy-external` Service has a load balancer address.
* The certificate subject matches your workspace hostname and the request returns HTTP 200.
* In the e6data console, the workspace shows **Running**. That status arrives over the workspace's outbound connection.

Check the Kubernetes version condition:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get namespaceconfig -n ${NAMESPACE} \
  -o jsonpath='{.items[0].status.conditions[?(@.type=="KubernetesVersionSupported")].message}'
```

Expected: no warning. A version outside the tested range gives a warning, not a block.

### Check that queries run end to end

**1. Register a catalog**

In the e6data console, register a catalog. See [Register a catalog](https://docs.e6data.com/platform/deploy/aws-cloudprem/register-catalog.md).

**2. Resume a query cluster**

Create and resume a query cluster. Expected: it reaches **Running**. About 20 seconds when nodes are already up. Replacing a cold executor node took 41 to 70 seconds.

**3. Run a query**

In the SQL Editor run:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT * FROM your_catalog.your_schema.your_table LIMIT 10;
```

Expected: rows return.

**4. Check Query History**

Open Query History and select refresh. Expected: the query is listed. The list doesn't refresh by itself.

**5. Check auto-suspend**

Leave the cluster idle. Expected: it auto-suspends after its idle time and its engine nodes are removed.

## Optional checks for hardened setups

| Setup | Check | Expected |
| - | - | - |
| Private-only | From outside your network: `dig +short <WORKSPACE_HOSTNAME>` and `curl -m 10 https://<WORKSPACE_HOSTNAME>/` | A private IP; the request fails |
| Private-only | From inside (VPN, bastion or a pod): `curl https://<WORKSPACE_HOSTNAME>/` and `nc -z <WORKSPACE_HOSTNAME> 5432` | HTTP 200; port 5432 open |
| Locked-down egress | Restart the console after the restriction is in place: `kubectl -n <NAMESPACE> rollout restart deploy/e6-console` | The new pod becomes Ready. A pod started before the restriction proves nothing |
| Locked-down egress | Your proxy or firewall log during a resume, query and suspend | Only the hosts in [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md) |
| Pod Security restricted | First turn on pod hardening and restart the workspace pods: `kubectl patch namespaceconfig <NAMESPACECONFIG> -n <NAMESPACE> --type merge -p '{"spec":{"podSecurityHardening":true}}'`. Then: `kubectl label --dry-run=server --overwrite ns <NAMESPACE> pod-security.kubernetes.io/enforce=restricted` | No "violate" warnings. Without pod hardening (off by default) the dry run reports violations |
| Small subnets | `aws ec2 describe-subnets --subnet-ids <a> <b> --query 'Subnets[].[CidrBlock,AvailableIpAddressCount]' --output table` before and after resuming your largest cluster | Free addresses stay above zero |

## Troubleshooting

If a check fails, see [Troubleshooting](https://docs.e6data.com/platform/deploy/aws-cloudprem/troubleshooting.md).

## See also

* [Install with your own tooling](https://docs.e6data.com/platform/deploy/aws-cloudprem/install-with-your-own-tooling.md)
* [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md)
* [Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md)


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