Skip to content

Commit

Permalink
Update readme with cluster usage manual
Browse files Browse the repository at this point in the history
  • Loading branch information
pkprzekwas committed Apr 3, 2023
1 parent ad63575 commit 8ceaf98
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions infra/aws/terraform/prow-build-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,47 @@ make apply

From here, all consecutive runs should be possible with command from above.

## Using cluster

### Fetch kubeconfig

```bash
# Prod:
aws eks update-kubeconfig --region us-east-2 --name prow-build-cluster
# Canary:
aws eks update-kubeconfig --region us-east-2 --name prow-build-canary-cluster
```

### Open kubeconfig and add assume role argument

For Prod:
```yaml
args:
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- prow-build-cluster
- --role-arn
- arn:aws:iam::468814281478:role/Prow-Cluster-Admin
```
For Canary:
```yaml
args:
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- prow-build-canary-cluster
- --role-arn
- arn:aws:iam::468814281478:role/canary-Prow-Cluster-Admin
```
## Removing cluster
Same as for installation, cluster removal requires running Terraform twice.
Expand Down

0 comments on commit 8ceaf98

Please sign in to comment.