In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to deploy docker-rancher-k8s basic environment". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn "how to deploy docker-rancher-k8s basic environment" together.
Building Docker-rancher-k8s Microservice Environment Based on UCloud Centos7.2_X64 Environment
docker and other data are stored in the/data/directory
Just remotely execute the following script to complete the upgrade kernel and install Docker steps
Modify the server host name, here it is recommended to use the host intranet IP,'. 'Replace with'-'for easy viewing, use the following command
Or name the host name according to the role
such as rancher service Load Balancer rancher-proxy
For example, rancher service node 1, named rancher_node01
For example, rancher service node 2, named rancher_node02
#Examples
hostnamectl --static set-hostname xxx-xxx-xxx-xxx
#rancher proxy services
hostnamectl --static set-hostname rancher-proxy
#rancher service node 1
hostnamectl --static set-hostname rancher-node01
#rancher service node 2
hostnamectl --static set-hostname rancher-node02
#Pit pit pit
Make sure to add a line of host ip host names to the/etc/hosts file
Example: 192.168.10.100 (ip) 192-168-10-100(hostname)
There is no chance that the cluster hostname will be duplicated, causing the cluster to crash
#Upgrade the kernel. If you are worried, download the script first and then execute it ^ ^
curl https://docker-snake.cn-bj.ufileos.com/update_kernel.sh | bash
#Don't forget to restart after upgrading the kernel. After logging in to the system again, be sure to check whether the/data/directory mounts the data disk
#The new version of docker overlay2 storage driver must support ftype=1
#xfs_info command check,mkfs.xfs -n ftype=1 /dev/xxx(reformat storage device), mount to directory
#Install docker, if you are not sure, download the script first and then execute ^ ^
curl https://docker-snake.cn-bj.ufileos.com/install_docker.sh | bash
#Install docker version 18.06.3-ce
curl https://docker-snake.cn-bj.ufileos.com/install_docker_18_06_03.sh | bash
#The scripts and files for the delivery environment are already stored in the following projects, as well as example projects.
https://gitee.com/aisao/full_container_station_scheme
#Overall structure diagram
Thank you for reading, the above is "docker-rancher-k8s basic environment how to deploy" content, after the study of this article, I believe you have a deeper understanding of how to deploy docker-rancher-k8s basic environment, the specific use of the situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.