- Clone this repo.
git clone https://github.com/bbrfkr/vk-fargate.git
- Build docker image.
cd vk-fargate
docker build -t <your dockerhub account>/vk-fargate:latest .
- Push docker image.
docker login
docker push <your dockerhub account>/vk-fargate:latest
-
Create EKS cluster by using iam role. (don't need to create worker nodes)
-
Create fargate task by using this image and the above iam role.
-
KUBELET_PORT
The listen port for virtual kubelet. Commonly 10250. -
EKS_CLUSTER_NAME
The name of EKS cluster to which virtual kubelet connects. -
FARGATE_CLUSTER_REGION
The name of region in which fargate cluster exists. -
FARGATE_CLUSTER_NAME
The name of fargate cluster on which virtual kubelet puts. -
FARGATE_SUBNETS
The subnets on which fargate tasks put. -
FARGATE_SGS
The Security Groups with which fargate tasks are associated.