Where are these containers hosted?
ECS hosted onEC2 Instances
But you still have to do:
If you want AWS to manage both Container Orchestration and Infrastructure Management, here is AWS Fargate.
Tell AWS, Here is my container, please run it.
Pros:
EC2 Instance Pricing: Pay for whole Server.
Fargate Pricing: How long and how much capacity.
What if you want to use Kubernetes?
Thankfully, AWS has EKS which manages Kubernetes cluster on AWS infrastructure.
Pros:
eksctl create cluster \
--name kf-demo \
--version 1.19 \
--region us-east-2 \
--with-oidc \
--ssh-access \
--ssh-public-key aws-hictc-kfserving-key \
--nodes 1 \
--node-type m5.large \
--node-volume-size=20 \
--managed
Delete whole cluster
eksctl delete cluster --name=kf-demo --region=us-east-2
Delete a nodegroup separately using eksctl delete nodegroup
# List EKS Clusters
eksctl get clusters
# Capture Node Group name
eksctl get nodegroup --cluster=<clusterName>
eksctl get nodegroup --cluster=eksdemo1
# Delete Node Group
eksctl delete nodegroup --cluster=<clusterName> --name=<nodegroupName>
eksctl delete nodegroup --cluster=eksdemo1 --name=eksdemo1-ng-public1