当前位置:网站首页>Key points of AWS eks deployment and differences between console and eksctl creation
Key points of AWS eks deployment and differences between console and eksctl creation
2022-04-23 04:33:00 【Heavy dust】
Catalog
AWS EKS Deployment points and console and eksctl Create differences
The last article described how to use eksctl establish AWS EKS
This article , It mainly describes the creation of AWS EKS Key points to pay attention to , And the console and eksctl The difference of
One 、EKS Deployment points
1.1 IAM role ( Console mode ,eksctl The role is created automatically )
Create... On the console AWS EKS Two roles and permissions are required , One for Cluster, One for Node.
among Node There are two kinds , One is EC2 Mode , One is Fargate Pattern
stay IAM Console select Create role , choice EKS Case study , Create separate Cluster Cases and Nodegroup Case study
1.2 The Internet
The selected subnet of the node group created in the console , There are three options
The first is the public subnet , The second is with NAT Gateway Private subnet for routing
The third kind of , It's a purely private subnet , Only intranet routing .
The cluster of the third seed network is a private cluster , But a purely private subnet must have the following VPC Endpoint( Reference documents [1])
* Interface endpoints for ECR (both ecr.api and ecr.dkr) to pull container images (AWS CNI plugin etc)
* A gateway endpoint for S3 to pull the actual image layers
* An interface endpoint for EC2 required by the aws-cloud-provider integration
* An interface endpoint for STS to support Fargate and IAM Roles for Services Accounts (IRSA)
* An interface endpoint for CloudWatch logging (logs) if CloudWatch logging is enabled
1.3 node AMI
Use AWS EKS, The node must be Amazon EKS Optimization of the AMI( Reference resources [2])
If you need to customize the image , You need to perform Amazon EKS Optimize AMI Generation script [3]
1.4 Cluster identity
establish Amazon EKS When the cluster , Clusters that will be at the control level RBAC Automatically create a cluster for in the configuration IAM Entity user or role ( for example , Federated users ) grant system:masters
jurisdiction .
Cluster default masters Permission for Creator , Initially created cluster , In addition to the Creator IAM The entity cannot operate the cluster .
So make sure you keep track of where the cluster was originally created IAM Entity .
To grant other AWS The ability of a user or role to interact with your cluster , Must edit Kubernetes Internal aws-auth
ConfigMap.
1.5 Nodes automatically expand (AutoScaling)
stay AWS EKS Managed node group in , Although used AutoScaling Group to create nodes , But the initial AutoScaling There are no expansion and contraction rules .
stay AWS EKS Nodes in the cluster need to be automatically expanded and shrunk, and they need to be installed and configured in the cluster cluster-autoscaler.
Two 、 Console and eksctl The difference of
2.1 Node groups
stay AWS EKS All node groups created by the console are managed node groups , Be able to display and view on the console .
and eksctl The created nodes include managed node groups and self managed node groups , The self managed node group is not present AWS EKS Interface display .
The self-confidence management node group can also be managed through Cloudformation establish ,eksctl The essence is to create a Cloudformation The stack realizes the management of the cluster .
2.2 plug-in unit
stay AWS EKS In the cluster created by the console Amazon VPC CNI、CoreDNS、kube-proxy All plug-ins are managed plug-ins , from AWS Manage updates .
While using eksctl The three plug-ins in the created cluster are unmanaged plug-ins , Although it is AWS Open source plug-ins , But not by AWS Manage updates , It needs to be managed by users themselves .
2.3 Options
stay AWS EKS The optional cluster attributes of the cluster created by the console are simple , and eksctl There are many optional attributes of the cluster created by .
However, many attributes will make it more difficult to control the cluster , And AWS The compatibility of other integration services is complex .
So in use eksctl When creating a cluster , Usually choose the minimum principle , That is, only the corresponding node groups and general cluster attributes are configured .
IAM and OIDC And other properties are not configured , Cluster creation and subsequent addition .
2.4 Node group storage
stay AWS EKS The node group created by the console can configure the data volume by starting the template , But it won't mount automatically , You need to write bash Script files
While using eksctl Create a new node group , Only the root volume size can be modified , Unable to create data volume .
Reference resources
[1] eksctl:https://eksctl.io/usage/eks-private-cluster/#configuring-private-access-to-additional-aws-services
[2] Amazon EKS Optimize AMI:https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/eks-optimized-amis.html
[3] Optimize AMI Script :https://github.com/awslabs/amazon-eks-ami
版权声明
本文为[Heavy dust]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230413460170.html
边栏推荐
- Understand the gut organ axis, good gut and good health
- Chlamydia infection -- causes, symptoms, treatment and Prevention
- Express中间件①(中间件的使用)
- matlab讀取多張fig圖然後合並為一張圖(子圖的形式)
- 阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)
- 单极性非归零NRZ码、双极性非归零NRZ码、2ASK、2FSK、2PSK、2DPSK及MATLAB仿真
- Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
- 华为机试--高精度整数加法
- 无线充电全国产化电子元件推荐方案
- Interaction of diet gut microbiota on cardiovascular disease
猜你喜欢
[mapping program design] coordinate azimuth calculation artifact (version C)
C语言常用字符串处理函数
Brushless motor drive scheme based on Infineon MCU GTM module
【BIM入门实战】Revit中的墙体层次以及常见问题解答
win10, mysql-8.0.26-winx64.zip 安装
C语言:恶搞小游戏
减治思想——二分查找详细总结
Inverse system of RC low pass filter
Effects of antibiotics on microbiome and human health
Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
随机推荐
VHDL语言实现32位二进制数转BCD码
国外LEAD,联盟经理常见问答
A lifetime of needs, team collaboration can play this way on cloud nailing applet
shell wc (统计字符数量)的基本使用
[AI vision · quick review of NLP natural language processing papers today, No. 32] wed, 20 APR 2022
QtSpim手册-中文翻译
A heavy sword without a blade is a great skill
MATLAB lit plusieurs diagrammes fig et les combine en un seul diagramme (sous forme de sous - Diagramme)
第四章 --- 了解标准设备文件、过滤器和管道
顺序表的基本操作
Express中间件②(中间件的分类)
Installation and use of Apache bench (AB pressure test tool)
io.Platform.packageRoot; // ignore: deprecated_member_use
Qtspim manual - Chinese Translation
AWS EKS添加集群用户或IAM角色
2021数学建模国赛一等奖经验总结与分享
What is the thirty-six plan
Ali's ten-year technical experts jointly created the "latest" jetpack compose project combat drill (with demo)
How to regulate intestinal flora? Introduction to common natural substances, probiotics and prebiotics
C语言 字符常量