Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions web/content/self-hosting/install-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,47 @@ aws acm describe-certificate --certificate-arn "$CERT_ARN" --query Certificate.S
**Done when:** only `settings checked` prints, and the certificate status is
`ISSUED`.

Then check that every ServiceAccount with AWS access has its Pod Identity
association. The Terraform in step 4 creates all of them; if your team created
the roles itself, this is where a missing one shows up:

| ServiceAccount (namespace `agent-relay`) | Needs | Role |
|---|---|---|
| `agent-relay-worker` | S3 read/write | sessions |
| `agent-relay-session-ingest-api` | S3 read/write | sessions |
| `agent-relay-search-indexer` | S3 read, OpenSearch write | search indexer (`INDEXER_ROLE_ARN`) |
| `agent-relay-session-read` | S3 read, OpenSearch read | search reader (`READER_ROLE_ARN`) |

```sh
for sa in agent-relay-worker agent-relay-session-ingest-api agent-relay-search-indexer agent-relay-session-read; do
id="$(aws eks list-pod-identity-associations --cluster-name <cluster name> --region "$AWS_REGION" \
--namespace agent-relay --service-account "$sa" --query 'associations[0].associationId' --output text)"
case "$id" in a-*) echo "ok $sa" ;; *) echo "MISSING $sa" ;; esac
done
```

**Done when:** four lines start with `ok`.

**`MISSING agent-relay-worker`** (or another)? Create it with the role from the
table (the sessions role is the one `agent-relay-session-ingest-api` uses):

```sh
aws eks create-pod-identity-association --cluster-name <cluster name> --region "$AWS_REGION" \
--namespace agent-relay --service-account <ServiceAccount> --role-arn <role ARN>
```

Without it the pods get no AWS credentials. For the worker, that shows up only
later, when the session summary worker logs `no Locker credentials`.
[IAM and Pod Identity](/docs/self-hosting/iam-pod-identity) has each role's
exact policy. `agent-relay-alleyoop` isn't used by this install: its
association is harmless.

**In every new terminal,** first run `cd agent-relay-install && source settings.sh`.

<!-- agent
Fill DOMAIN, ORG_ID, ORG_NAME and ADMIN_EMAIL only with the human's answers.
If any ServiceAccount prints MISSING, show the human the create command with
the role ARN filled in and ASK THE HUMAN before running it: it changes IAM.
If more than two load balancer subnets are listed, ASK THE HUMAN which ones the
load balancer uses (by default, all of them). Put two in settings.sh and add a
third with step 9's "third load balancer subnet" block.
Expand Down
1 change: 1 addition & 0 deletions web/content/self-hosting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ HUMAN before running anything that changes the cluster or cloud account.
| `cloud-sql-setup.sh pre` waits about 10 minutes, then says its Job did not succeed | On a new Google Cloud project the node service account has no roles, so the Job's image pull fails with `403`. Grant it `roles/artifactregistry.reader` on the mirror repository ([step 5 of the GKE guide](/docs/self-hosting/install-gke)), then run `pre` again |
| `billing account ... disabled` from Cloud Storage or Service Networking | Your Application Default Credentials use a quota project without billing: `gcloud auth application-default set-quota-project <project id>` |
| `PERMISSION_DENIED ... resourcemanager.projects.create` | You can't create projects in the organization. Someone with that permission and `billing.user` on the billing account creates the project, then grants you Owner on it |
| `no Locker credentials` in a worker log | `agent-relay-worker` has no Pod Identity association. Create it with the sessions role (step 6 of [Install on EKS](/docs/self-hosting/install-eks) lists every one to check), then `kubectl -n agent-relay rollout restart deploy` |
| S3 or OpenSearch `AccessDenied` | A Pod Identity association is missing, or the namespace or release name differs from Terraform's. Create it, then `kubectl -n agent-relay rollout restart deploy` |
| OpenSearch 403 | The role mapping in step 7 of the EKS guide is missing, or step 7 ran as the wrong role |
| Self-signed or certificate errors to the database | The `rds-ca` ConfigMap or `__RDS_CA_SHA256__` is wrong: rerun `rds-setup.sh pre` before `post`, and compare the hash |
Expand Down
Loading