We provisioned the Kubernetes cluster on AWS, therefore, we will try to integrate with AWS services wherever possible.
For storing docker images, we will use ECR; for LoadBalancer, we will use ELB; and for persistence storage, we will be using EBS. There are a couple of important points that needs to be taken care before implementing.
- Each and every master and worker node should be attached with the IAM role that has the permission of AWS resources such as S3, EC2, VPC, Route53, and so on. But that's not enough, we also have to run the aws configure command, but we don't need to fill AccessKey and SecretKey but region name, because the key is for global purpose and to provision a resource we have to mention region name.
- If a Kubernetes cluster is setup by kops or given an argument of --cloud-provider=aws in configuration...