当前位置:网站首页>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
边栏推荐
- SQL statement for adding columns in MySQL table
- 【论文阅读】【3d目标检测】point transformer
- [BIM introduction practice] Revit building wall: detailed picture and text explanation of structure, envelope and lamination
- Go反射—Go语言圣经学习笔记
- Fusobacterium -- symbiotic bacteria, opportunistic bacteria, oncobacterium
- Coinbase: basic knowledge, facts and statistics about cross chain bridge
- 【BIM入门实战】Revit建筑墙体:构造、包络、叠层图文详解
- Error occurs when thymeleaf th: value is null
- 协程与多进程的完美结合
- Nel ASA: her ø Ya facility in Norway officially opened
猜你喜欢

/etc/bash_completion.d目录作用(用户登录立刻执行该目录下脚本)

Effects of antibiotics on microbiome and human health

matlab读取多张fig图然后合并为一张图(子图的形式)

Unipolar NRZ code, bipolar NRZ code, 2ASK, 2FSK, 2PSK, 2DPSK and MATLAB simulation

C语言:恶搞小游戏

减治思想——二分查找详细总结

【论文阅读】【3d目标检测】Voxel Transformer for 3D Object Detection

第四章 --- 了解标准设备文件、过滤器和管道

C语言: 指针的进阶

单极性非归零NRZ码、双极性非归零NRZ码、2ASK、2FSK、2PSK、2DPSK及MATLAB仿真
随机推荐
国外LEAD,联盟经理常见问答
【BIM入门实战】Revit中的墙体层次以及常见问题解答
Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
Opencv -- yoact case segmentation model reasoning
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
IEEE Transactions on Industrial Informatics(TII)投稿须知
Microbial neuroimmune axis -- the hope of prevention and treatment of cardiovascular diseases
C语言:恶搞小游戏
[AI vision · quick review of today's sound acoustic papers, issue 2] Fri, 15 APR 2022
针对NFT的网络钓鱼
【Pytorch基础】torch.split()用法
单片机串口数据处理(2)——uCOSIII+循环队列接收数据
補:注解(Annotation)
Go反射法则
Single chip microcomputer serial port data processing (2) -- ucosiii + cyclic queue receiving data
洛谷P1858 【多人背包】 (背包求前k优解)
Express middleware ① (use of Middleware)
Go 语言中的 logger 和 zap 日志库
thymeleaf th:value 为null时报错问题
matlab讀取多張fig圖然後合並為一張圖(子圖的形式)