Skip to content

Commit

Permalink
Create Fargate Cluster With Terraform (#415) (#435)
Browse files Browse the repository at this point in the history
Co-authored-by: rltoSD <[email protected]>
  • Loading branch information
sethAmazon and rltoSD authored Dec 17, 2021
1 parent 82a3b8c commit 1fd2712
Show file tree
Hide file tree
Showing 4 changed files with 556 additions and 19 deletions.
23 changes: 4 additions & 19 deletions docs/run-testing-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,12 @@ terraform destroy -var="eks_cluster_name={the eks cluster name in your account}"
````

### 2.3.1 Run in EKS Fargate
#### Set Up
* Install kubectl and eksctl
* https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html
* https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html
* Create eks fargate cluster
```
eksctl create cluster --name <cluster_name> --region <region> --fargate
```
* Create a oicd
#### Create a new fargate cluster (optional in integ test account required in person account)

```
eksctl utils associate-iam-oidc-provider --cluster <cluster_name> --approve
cd terraform/eks_fargate_setup && terraform apply -auto-approve -var="eks_cluster_name=<your_cluster>"
```
* Create web identity role (ServiceAccount-eks-test-aoc-role)
* Identity provider is the openId connect on your eks cluster
* Add required permissions for the collector for your test
* Create Ingress controller fargate
* https://aws.amazon.com/premiumsupport/knowledge-center/eks-alb-ingress-controller-fargate/
* To test that ingress set up
* Download config https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/docs/examples/2048/2048_full.yaml and replace all instances of namespace game-2048 with default.
* Check for external url after a couple of minutes
* ````kubectl get ingress````

#### How to run fargate tests
Add -var="deployment_type=fargate" to the eks creation statement
Supported tests
Expand Down
Loading

0 comments on commit 1fd2712

Please sign in to comment.