当前位置:网站首页>Cluster construction based on kubernetes v1.24.0 (I)
Cluster construction based on kubernetes v1.24.0 (I)
2022-07-24 12:39:00 【Dotnet cross platform】
One 、 Write it at the front
K8S 1.24 As a very important version update , It provides us with many important functions . This version involves 46 Item enhancements : among 14 Item has been upgraded to stable version ,15 Item enters beta Stage ,13 Item has just entered alpha Stage . Besides , have other 2 This feature is deprecated 、2 This function has been deleted .
remove kubelet Medium Dockershim
Close beta API
Sign the release artifact
OpenAPI v3
Officially announced storage capacity and volume expansion
NonPreemptingPriority Stable release
Storage plug-in migration
gRPC Probe upgrade to Beta edition
Kubelet Upgrade the certificate provider to beta edition
Context logging enters alpha Stage
Avoid assigning... To services IP When there is a conflict
For more details, please check :GIT ChangeLog-1.24.md
Two 、 Environmental preparation
| host | CPU | Memory | Hard disk | Host name | IP |
|---|---|---|---|---|---|
| CentOS 7.9 | 2 nucleus | 2G | 30G | master | 192.168.183.133 |
| CentOS 7.9 | 2 nucleus | 2G | 30G | node01 | 192.168.183.134 |
| CentOS 7.9 | 2 nucleus | 2G | 30G | node02 | 192.168.183.135 |
3、 ... and 、 Virtual machine installation
use VMware Build three virtual machines , Just follow the normal steps , What needs special description here is the network configuration .
1. View network information :
This picture information is important , It contains subnets IP And gateway , We'll use that later
2. Set the network connection in the virtual machine network adapter to VMnet8
3. Virtual machine configuration
3.1 Setting up IP
And here for simplicity , You need to set the for each virtual machine IP For fixing IP, Can be avoided because IP Change to affect subsequent operations , If conditions permit, you can customize the domain name and build DNS The server parses .
cd /etc/sysconfig/network-scripts/
lsvim ifcfg-ens33Here we will modify ifcfg-ens33, Enter the command vim ifcfg-ens33 modify bootproto=“static”, At the same time, the following contents are added , Here we put the virtual machine IP The address was changed to 192.168.183.135.
IPADDR=192.168.183.135
NETNASK=255.255.255.0
GATEWAY=192.168.183.2
DNS1=192.168.1.13.2 Restart network service
Input service network restart, The following appears , At least it means that there is no problem with our modification .
3.3 Input ip addr
see ip Whether the address is set by us IP Address , As can be seen in the picture ip The address has been modified successfully
3.4 Network testing
ping www.baidu.com
thus ,IP Modified to complete . The other two machines , Also follow this procedure to set .
4 Set host name
stay master Node , Input vim /etc/hosts, Add these three records
192.168.183.133 master
192.168.183.134 node01
192.168.183.135 node025 To configure SSH Password free login
ssh-keygen -t rsa
Local ssh The public key file is installed in node01 and node02
ssh-copy-id node01
ssh-copy-id node026 Sync hosts
Put the already set hosts The files are copied to three other machines
scp /etc/hosts node01:/etc/
scp /etc/hosts node02:/etc/7. Virtual machine configuration
7.1 close 、 Ban 、 uninstall firewalld A firewall
The main purpose of this step is to use K8S Built in security policy
systemctl stop firewalld && systemctl disable firewalld && yum -y remove firewalld7.2 Empty iptable The rules
iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
iptables -P FORWARD ACCEPT7.3 close swap
swapoff -a && sed -i '/swap/s/^/#/' /etc/fstab
free -hYou can see swap All lines output 0, explain swap Closed successfully
边栏推荐
- MySQL common functions
- Okaleido tiger NFT is about to log in to binance NFT platform
- How to render millions of 2D objects smoothly with webgpu?
- New applications of iSCSI and separation of storage services of NFS
- 微信小程序-绘制仪表盘
- 突破内存墙能带来什么?看火山引擎智能推荐服务节支增效实战
- Calculate the distance between the longitude and latitude of two coordinates (5 ways)
- Seckill implementation diagram
- 让一套代码完美适配各种屏幕
- Buckle practice - 27 score after turning the matrix
猜你喜欢

Support liuhaiping

微信小程序-绘制仪表盘

Node takes effect after using NVM to install under Windows system, but NPM does not take effect

SQL JOIN 入门使用示例学习左连接、内连接、自连接

支持刘海屏

Native Crash的一切

如何将Typora中图片上传到csdn

With the strong development of cloud native, how should enterprises seize business opportunities

微信小程序生成二维码

Aruba learning notes 04 Web UI -- Introduction to configuration panel
随机推荐
Learn some programming: anti unemployment "vaccine"
How to find out the function calling process of complex code running as soon as possible
手把手教你用 Power BI 实现 4 种可视化图表
Buckle practice - 27 score after turning the matrix
高速成长的背后,华为云乌兰察布数据中心的绿色之道
Reserved instances & Savings Plans
Wechat applet generates QR code
Is there a free and commercially available website for US media video clips?
Buckle practice - sum of 34 combinations
Slow motion animation, window related data and operations, BOM operations [DOM (V)]
Force deduction exercise - 26 split array into continuous subsequences
QT notes - qtxml
Implementing deep learning framework from zero -- further exploration of the implementation of multilayer bidirectional RNN
OpenCV:08图像金字塔
Calculate the distance between the longitude and latitude of two coordinates (5 ways)
[rust] rust language foundation | you should quickly get an impression when learning a language
String matching KMP
for mysql
What can breaking through the memory wall bring? See the actual battle of volcano engine intelligent recommendation service to save money and increase efficiency
国产旗舰手机定价近六千,却连iPhone12都打不过,用户选谁很明确








thus ,IP Modified to complete . The other two machines , Also follow this procedure to set .
Local ssh The public key file is installed in node01 and node02



