I used Amazon Elastic Kubernetes Service (Amazon EKS) to deploy, manage, and scale containerized applications using Kubernetes on AWS.
Since Amazon EKS is based on the open-source tool Kubernetes, applications managed by Amazon EKS are compatible with applications managed by other Kubernetes environments.
Amazon also offers the Amazon Elastic Container Service (Amazon ECS).
Docker desktop
To demonstrate that I could use the same kubectl client to deploy containers to a laptop or Amazon EKS, I used this Docker Desktop example.
aws cli
I used the aws command line tool to manage the Amazon Web Services cloud.
aws configure
I used aws configure to set credentials.
BASH
1% aws configure
AWS Access Key ID [None]: AKIAYLZDACM7MNDENQV4
AWS Secret Access Key [None]: iBXYnPPUTp+enyaVU2xvXXXXXXXXXXXXXXXXXXXX
Default region name [None]:
Default output format [None]:
eksctl
I used eksctl, a simple CLI tool for creating clusters on Amazon EKS.
https://github.com/weaveworks/eksctl
eksctl create cluster
BASH
1% eksctl create cluster \ 2--name blog-cluster
Optional arguments:
BASH
1--node-type t2.nano \ 2--nodes 2
kubectl apply
kubectl get
I retrieved information about blog-service.
BASH
1kubectl get service/blog-service | awk {'print $1" " $2 " " $4 " " $5'} | column -t
eksctl delete cluster
I used eksctl delete to remove the cluster.
BASH
1% eksctl delete cluster \ 2 --name blog-cluster
kubectl config use-context
I switched back to using Docker Desktop.
BASH
1% kubectl config use-context docker-desktop
Deleting an AWS Access Key
Publishing AWS access keys is not a great idea, so I deleted mine.




























