AWS ECS/Fargate

Instructions for K2 Agents Installation of AWS ECS/Fargate

Prerequisites:

  • Please check K2 Agent Supported components

K2 Agent Supported Components
  • It is assumed that you are familiar with ECS Fargate clusters, concepts, task creation, and discoverable service creation for implementing following steps.

  • Make sure you have an ECS Fargate cluster with an appropriate AWS execution role defined. Follow instructions from amazon to do same. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create_cluster.html

  • If you need any help with the ECS concepts please contact your K2 service representative.

Steps

Step 1

Create a new task definition in your cluster with FARGATE as the launch type.

Step 2

In the task definition create wizard, configure the following details as per your requirement.

  • Task Definition Name (you can configure any name but we recommend to configure as k2-agent)

  • Task memory (K2-agent requires a minimum of 4GB memory )

  • Task CPU (K2-agent requires a minimum of 2vCPU)

Step 3

Perform Amazon EFS Volumes setup as mentioned here. You need to add this volume to K2 Agent Container at /opt/k2-ic mount point in the below json before install.

Step 4

Configure the K2-agent container by clicking on the button Configure via JSON and add the K2-agent container definition in the Container Definition section of the task JSON.

Go to Installation Portal

Select version and Policy Group Name. Download Task JSON.

Step 5

When deploying the service from k2-agent task definition, enable service discovery integration with a separate namespace k2-ns and service namek2-service(create if not exist with exact bold letters) for service discovery between application containers and K2-agent.

Congratulations, You have successfully installed K2 Platform on your premises.

Last updated

Was this helpful?