认识
Amazon Elastic Kubernetes Service —— The most trusted way to start, run, and scale Kubernetes
官网:https://aws.amazon.com/eks/
文档:https://docs.aws.amazon.com/eks/
仓库:None
组成
eksctl | The official CLI for Amazon EKS
官网:https://eksctl.io/
项目:https://github.com/eksctl-io/eksctl
Create OIDC provider (eksctl) | https://docs.aws.amazon.com/eks/latest/userguide/enable-iam-roles-for-service-accounts.html#_create_oidc_provider_eksctl
构建
Create a cluster with Amazon EKS Auto Mode
https://docs.aws.amazon.com/eks/latest/userguide/create-auto.html
Connect kubectl to an EKS cluster by creating a kubeconfig file | https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
- 执行 aws configure 命令,并根据提示进行配置 | https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
- 在 Web Console 中,Access,IAM access entries,Create access entry,按照提示为用户授予集群访问权限;
- 执行 aws eks update-kubeconfig –region ap-southeast-1 –name my-cluster 命令,来生成 kubeconfig 文件
Max Pods
https://stackoverflow.com/questions/72161772/k8s-deployment-is-not-scaling-on-eks-cluster-too-many-pods
https://github.com/aws/amazon-vpc-cni-k8s/blob/master/misc/eni-max-pods.txt
机型选择
- m7i.2x 支持 58 个 pod
- 如果考虑 amd,可以用 m6a.2x,会更便宜点
后面选择机型,可以找技术咨询问一下,他们可以给到一些建议