当前位置:网站首页>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
边栏推荐
- TypeNameExtractor could not be found
- Implementing deep learning framework from zero -- further exploration of the implementation of multilayer bidirectional RNN
- TypeNameExtractor could not be found
- Opencv:08 image pyramid
- String matching KMP
- Leecode-268. missing numbers (Application of XOR, find numbers that do not appear, find numbers that only appear once)
- 使用TypeFace设置TextView的文字字体
- The basis of point graph in the map of life information and knowledge
- 02 linear structure 2 multiplication and addition of univariate polynomials (linked list solution)
- nacos部署
猜你喜欢

C language course design -- hotel management system

Industry insight | how to better build a data center? It and business should "go together"

nacos部署
![[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12](/img/48/7a1777b735312f29d3a4016a14598c.png)
[rust] reference and borrowing, string slice type (& STR) - rust language foundation 12

如何将Typora中图片上传到csdn

Reserved instances & Savings Plans
![Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]](/img/ee/e0770298d0534014485145c434491a.png)
Detailed explanation of MSTP protocol for layer 3 switch configuration [Huawei ENSP experiment]
如何用WebGPU流畅渲染百万级2D物体?
Learn some programming: anti unemployment "vaccine"

Examples of map search
随机推荐
String matching KMP
基于Kubernetes v1.24.0的集群搭建(三)
手把手教你用 Power BI 实现 4 种可视化图表
如何最快找出复杂代码运行时的函数调用流程
Design of digital oscilloscope based on arm and FPGA -- QMJ
Why is there discontinuity in MySQL auto increment primary key?
Native Crash的一切
Buckle practice - 25 non overlapping intervals
Force deduction exercise - 26 split array into continuous subsequences
How to mount NFS shares using autofs
Seckill implementation diagram
With the strong development of cloud native, how should enterprises seize business opportunities
OpenCV:08图像金字塔
ASP. Net core deployment Manual: 1. Deployment Basics
Intent jump pass list set
Use abp Zero builds a third-party login module (4): wechat applet development
我在一个模块工程中使用注解配置了redis的序列化, 然后在另外一个模块引入这个模块,为什么这个配置
Buckle practice - 27 score after turning the matrix
Is there a free and commercially available website for US media video clips?
Video realizes the control of video progress, playback and pause








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



