
"In the target group: Select create new target group. Target group name: jenkins-tg Protocol: HTTP port: 8080 Deregistration delay: 300 health check protocol : HTTP health check path : /login Then click on create. Your service is ready, and within minutes, you will see the status as Active and the deployment as completed. It means our Jenkins master is live. To access, go to: Ec2 > Load balancing > Jenkins-ALB > Copy DNS name."
"For the first-time login, check the logs of the task to get the password. Now in Jenkins master, go to Manage jenkins > Plugins In Available plugins, search "ecs" & install the Amazon Elastic Container Service (ECS)/Fargate plugin. After installing the plugin, go back to ECS >> Task Definition. Step 5: Now we will create a task definition for our slave to launch dynamic agents to do our task."
Create a Fargate service in the ECS cluster using the jenkins-master-task family and name the service jenkins-master-service. Use the Latest platform version, select the VPC containing EFS, and attach an appropriate security group with required inbound ports. Configure an Application Load Balancer named Jenkins-Alb and a target group jenkins-tg on HTTP port 8080 with deregistration delay 300 and health check path /login. After creation the service becomes Active and the ALB DNS serves the Jenkins home page; retrieve the initial admin password from task logs. Install the Amazon ECS/Fargate plugin in Jenkins, then create a jenkins-agent Fargate task definition (Linux, CPU 1, 3 GB memory) and assign a task role.
Read at Medium
Unable to calculate read time
Collection
[
|
...
]