当前位置:网站首页>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
边栏推荐
- Detailed explanation of life cycle component of jetpack
- RC低通滤波器的逆系统
- STM32上μC/Shell移植与应用
- Set经典小题目
- [BIM introduction practice] wall hierarchy and FAQ in Revit
- Basic use of shell WC (counting the number of characters)
- zynq平臺交叉編譯器的安裝
- [AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
- Brushless motor drive scheme based on Infineon MCU GTM module
- Phishing for NFT
猜你喜欢

Phishing for NFT

Coinbase: basic knowledge, facts and statistics about cross chain bridge

Effects of antibiotics on microbiome and human health

STM32F4单片机ADC采样及ARM-DSP库的FFT

2021数学建模国赛一等奖经验总结与分享

Cortex-M3寄存器组、汇编语言与C语言的接口介绍

Qtspim manual - Chinese Translation
![[AI vision · quick review of robot papers today, issue 31] Fri, 15 APR 2022](/img/f5/3cd3abee1480dc2cefa7f35696631b.png)
[AI vision · quick review of robot papers today, issue 31] Fri, 15 APR 2022

【BIM入门实战】Revit中的墙体层次以及常见问题解答

QtSpim手册-中文翻译
随机推荐
Mysql, binlog log query
[AI vision · quick review of today's sound acoustic papers, issue 2] Fri, 15 APR 2022
优麒麟 22.04 LTS 版本正式发布 | UKUI 3.1开启全新体验
国外LEAD,联盟经理常见问答
Go反射—Go语言圣经学习笔记
Why recommend you to study embedded
KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
针对NFT的网络钓鱼
PHP export excel table
How to regulate intestinal flora? Introduction to common natural substances, probiotics and prebiotics
Introduction to Cortex-M3 register set, assembly language and C language interface
Stm32f4 MCU ADC sampling and FFT of ARM-DSP Library
Redis 命令大全
HMS Core Discovery第14期回顾长文|纵享丝滑剪辑,释放视频创作力
MATLAB lit plusieurs diagrammes fig et les combine en un seul diagramme (sous forme de sous - Diagramme)
win10, mysql-8.0.26-winx64. Zip installation
无线键盘全国产化电子元件推荐方案
io.Platform.packageRoot; // ignore: deprecated_member_use
C语言常用字符串处理函数
TreeSet课后练习