![]() assume-role-policy-document file://~/environment/ec2-role-trust-policy.json Create the gitlab-runner role and specify the trust policy that you created using the create-role command.Create the trust policy document named ec2-role-trust-policy.json.Ĭat ~/environment/ec2-role-trust-policy.json.There are also other ways to create GitLab runners on spot instances that we are not reviewing in this workshop: using Docker Machine, runners inside containers in a Kubernetes cluster with the worker nodes on spot instances, or in Amazon ECS with Fargate Spot. It is built using Infrastructure as Code (IaC) with AWS CloudFormation, but you can implement similar logic using any IaC solution of your choice. You can find more about its features here. In this lab you will configure GitLab CI/CD runners using GitLab HA Scaling Runner Vending Machine for AWS solution. Increasing resilience when using Spot Instances Lab 4: Using containers backed by Spot instance in Auto Scaling GroupsĬonfigure GitLab runners on Spot instances Lab 3: Externalise state data to add resiliency to Jenkins Lab 2: Deploy testing environments using Spot & Launch TemplatesĬode snippet: The Test Environment CloudFormation templateĬode snippet: The SpotCICDWorkshop_ManageTestEnvironment Lambda function Lab 1: Reduce the cost of builds using Amazon EC2 Spot Fleet (Optional) Running cost optimized and resilient Jenkins jobsĬreate an Amazon SageMaker Notebook InstanceĬonfiguring Libraries for Managed Spot TrainingĬreating the Spot Interruption Experiment Test Autoscaling of Cluster and Application Spot Best Practices and Interruption HandlingĬonfigure Horizontal Pod Autoscaler (HPA)Ĭreate self managed node groups with Spot Instances Select Instance Types for DiversificationĬreate EKS managed node groups with Spot capacity What happens when you create your EKS clusterĮKS Architecture for Control plane and Worker node communication Using AWS Fargate Spot capacity providersĪdd Fargate capacity providers to ECS Cluster Using Spot Instances with Auto Scaling groups capacity providersĬreate On-Demand Auto Scaling Group and Capacity ProviderĬreate EC2 Spot Auto Scaling Group and Capacity Provider Setup AWS CLI and clone the workshop repo (Optional) - Launching an EC2 Spot Instance via Spot Fleet request (Optional) - Launching an EC2 Spot Instance via the RunInstances API Launching EC2 Spot Instances via EC2 Fleet Launching EC2 Spot Instances via EC2 Auto Scaling group
0 Comments
Leave a Reply. |