Docs/Deployment/AWS EKS

AWS EKS

Configure the NxtOne SDK for workloads on Amazon EKS.

On EKS the NxtOne SDK runs exactly as it does on any cluster: inside your application containers, configured through environment variables on your own Deployments. There is nothing NxtOne-specific to install in the cluster itself.

This page covers only what is specific to EKS. Read Kubernetes first — the Secret, Deployment settings, read-only filesystem notes, grace period, and verification steps all apply here unchanged.

1. No IAM role or IRSA needed

The SDK authenticates to NxtOne with your API key, and it sends large payloads to Amazon S3 through presigned URLs, which carry their own authorization. It needs no AWS credentials of its own:

  • No IAM role, IRSA annotation, or EKS Pod Identity association for NxtOne.
  • No changes to the IAM role your application already uses, if it has one.
  • No permissions on the node instance role.

If your service already uses IRSA or Pod Identity for its own AWS calls, leave that as it is — the SDK does not depend on it.

2. Prerequisites

  • An EKS cluster you can reach with kubectl, and application images with the SDK installed — see Docker.
  • An API key from the dashboard — see Authentication.
  • Outbound HTTPS (443) from your pods' subnets — see section 5.
  • Optional: the External Secrets Operator, if you want the API key to live in AWS Secrets Manager.

3. Keeping the API key in Secrets Manager

A plain Kubernetes Secret, created as shown on the Kubernetes page, works on EKS as-is. If your team keeps credentials in AWS Secrets Manager instead, store the key there and sync it into a Kubernetes Secret, so your Deployments reference it the same way:

bash
aws secretsmanager create-secret \ --name nxtone/api-key \ --secret-string "$NXTONE_API_KEY" \ --region eu-west-1

With the External Secrets Operator and a store already connected to Secrets Manager, one ExternalSecret per namespace produces the nxtone-credentials Secret:

yaml
apiVersion: external-secrets.io/v1 kind: ExternalSecret metadata: name: nxtone-credentials namespace: payments spec: refreshInterval: 1h secretStoreRef: kind: ClusterSecretStore name: aws-secrets-manager # your existing store target: name: nxtone-credentials # the Secret your Deployments reference data: - secretKey: api-key remoteRef: key: nxtone/api-key
The IAM permissions here belong to the sync controller, not to your pods. The External Secrets Operator's own role needs secretsmanager:GetSecretValue on this secret (plus kms:Decrypt if it is encrypted with a customer-managed key). Your application pods and the SDK need nothing. Environment variables are read when a container starts, so after rotating the key, run kubectl rollout restart on the Deployments that use it.

The Secrets Store CSI Driver with the AWS provider works too, as long as you sync the value into a Kubernetes Secret (its secretObjects option) so it can populate the NXTONE_API_KEY environment variable.

4. Managed node groups and Fargate

Because the SDK is part of your image rather than a DaemonSet, it runs wherever your pods run:

Compute typeWhat to know
Managed or self-managed node groupsNo difference from any other cluster.
FargateWorks unchanged — each pod carries its own SDK. Fargate pods run only in private subnets, so they reach NxtOne through a NAT gateway (section 5).
Mixed clustersNo special handling. Pods on node groups and Fargate report the same way and land in the same behavioral map, as long as each Deployment sets its own NXTONE_PROJECT_ID.

5. VPC egress

The SDK needs outbound HTTPS (443) to the NxtOne API (api.nxtone.ai and www.api.nxtone.ai) and to Amazon S3. It opens no ports, so there are no inbound rules, load balancers, or Services to add. Check each layer between your pods and the internet:

LayerWhat to check
Route tablesPods in public subnets reach the internet directly. Pods in private subnets — including all Fargate pods — need a route to a NAT gateway.
Security groupsThe node security group, or the pod's security group if you use security groups for pods, must allow outbound TCP 443. The default outbound rule allows all traffic.
Egress filteringIf AWS Network Firewall or another domain allowlist sits on the path, allow the two NxtOne API hosts and Amazon S3.
S3 gateway endpointIf your route tables use an S3 gateway endpoint, its endpoint policy can apply to the SDK's uploads, and a policy limited to your own account's buckets blocks them.
NetworkPolicyThe Amazon VPC CNI enforces Kubernetes NetworkPolicies once network policy support is enabled on the add-on. Allow DNS and 443 as shown on the Kubernetes page.
A cluster with no route to the internet cannot reach the NxtOne API. Give instrumented pods a path out on 443, typically through a NAT gateway.

6. Verifying and common EKS issues

Verify exactly as on any cluster — the SDK logs to stderr, so its startup lines are in your pod logs (and in CloudWatch, if you ship container logs there):

bash
kubectl logs -n payments deployment/payment-service | grep -i nxtone # If you sync the key from Secrets Manager, the ExternalSecret should report SecretSynced kubectl get externalsecret nxtone-credentials -n payments

Java prints nxtone: agent attached, then nxtone: application ready; Node.js prints NXTONE_SESSION_ID=…. A hint that the API key is missing means the SDK is running as a no-op.

SymptomLikely causeFix
ExternalSecret not SecretSynced; pods stuck in CreateContainerConfigErrorThe sync controller cannot read the secret.Check the controller's IAM permissions, the secret name and region in the store, and kms:Decrypt for a customer-managed key.
Missing-API-key hint in the logs after a successful syncPods started before the Secret existed, or the key name differs from secretKeyRef.Match the key name (api-key), then kubectl rollout restart the Deployment.
SDK lines present, no data in the dashboardEgress is blocked — this is a network problem, not an IAM one.Work through the layers in section 5: NAT route, security groups, egress filtering, S3 endpoint policy.
Only Fargate workloads missingTheir private subnets have no NAT route.Add a NAT gateway route for the subnets in your Fargate profiles.

Anything not covered here is likely generic — see Kubernetes and Troubleshooting.