当前位置:网站首页>rancher部署kubernetes集群
rancher部署kubernetes集群
2022-07-26 17:46:00 【51CTO】
实验环境
rancher/k8s_master 192.168.10.18
k8s_node1 192.168.10.10
cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
cat /proc/cpuinfo | grep "processor" | wc -l
2
软件安装
echo SELINUX=disabled > /etc/sysconfig/selinux
systemctl stop firewalld NetworkManager && systemctl disable firewalld NetworkManager
cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 >> /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 10 >> /etc/sysctl.conf
echo net.ipv4.ip_forward= 1 >> /etc/sysctl.conf
sysctl -p
yum install -y docker-ce docker-ce-cli containerd.io
systemctl daemon-reload
systemctl start docker && systemctl enable docker
docker --version
Docker version 18.06.2-ce, build 6d37f41 k8s_master操作
docker run -itd --restart=always --privileged=true -p 81:80 -p 8443:443 --name rancher rancher/rancher:v2.5.9 k8s1操作
边栏推荐
- Development of NFT digital collection system: Shanxi first released digital collections of ancient buildings on "China Tourism Day"
- Distributed link tracking Jaeger's use in golang
- MPLS实验
- 455. 分发饼干【双指针 ++i、++j】
- How to design test cases well
- NFT数字藏品系统开发:同道大叔首推祈福系列数字藏品开售即罄
- [yuntu said] issue 246 digital asset chain - your God of digital asset property protection!
- Multi merchant mall system function disassembly Lecture 16 - platform side member growth value record
- Neural network learning (2) introduction 2
- J9 number theory: how to avoid the trap of stepping on thunder?
猜你喜欢

Linked list - the first common node of two linked lists
![455. Distribute cookies [double pointer ++i, ++j]](/img/8c/cc5361caefceb6a4eb1c2ef8d5dede.png)
455. Distribute cookies [double pointer ++i, ++j]

Daorayaki | product principles of non-financial decentralized application

Likeshop takeout order system is open source, 100% open source, no encryption

Download and configuration of irrklang audio library

MPLS experiment

Sword finger offer regular expression matching

FTP协议

The pit of mpc5744p reports an error, RTOS cannot be started, and there is a clock source problem

ALV screen input option learning
随机推荐
Explain in detail the implementation of grpc client long connection mechanism
Sentinel 隔离与降级
我酷故我在
SSM integration configuration
The first ABAP ALV reporter construction process
Some tips for printing logs
Module 8 job message data MySQL table design
Have you ever encountered a deadlock problem in MySQL? How did you solve it?
Interface test scheme (interface test idea)
模块八作业 - 消息数据 MySQL 表设计
Meta Cambria手柄曝光,主动追踪+多触觉回馈方案
一文详解MES系统给企业带来的5大好处,附应用场景
The principle of database index, why use b+ tree, why not binary tree?
SSM整-整合配置
还在用Xshell?推荐这个更现代的终端连接工具
Still using xshell? Recommend this more modern terminal connection tool
If the recommendation effect is not satisfactory, it's better to try to learn the propeller chart
How the test team conducts QA specification
The pit of mpc5744p reports an error, RTOS cannot be started, and there is a clock source problem
Hello World