In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to deploy Kubernetes and KubeSphere to Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to deploy Kubernetes and KubeSphere to Linux.
This article introduces the fastest way to install Kubernetes and experience the core features of KubeSphere. All-in-one mode allows you to install Kubernetes v1.15.5 and KubeSphere to a Linux machine with one click.
Tip:
KubeSphere 2.1 supports custom installation of various functional components. Users can choose the required components according to their business needs and machine configuration. By default, only minimum installation is enabled. For more information, please refer to the installation instructions to enable the installation of optional components.
If you use online installation on the cloud platform, you can speed up the installation by increasing the bandwidth.
prerequisite
It is recommended to turn off the network firewall.
Step 1: prepare the host
Refer to the following node specifications to prepare a host node that meets the requirements to start the installation of all-in-one mode. In order to prevent software version conflicts, it is recommended to choose a clean machine.
Description:
If you use ubuntu 16.04, it is recommended to use its latest version 16.04.5.
If you use ubuntu 18.04, you need to use root users
If the sudo command is not installed on the Debian system, you need to use the root user to execute the apt update & & apt install sudo command to install the sudo command before installation.
Operating system minimum configuration CentOS 7.5 (64 bit) CPU:2 core, memory: 4 GB, system disk: 100 GUbuntu 16.04 LTS (64 bit) CPU:2 core, memory: 4 G, system disk: 100 GRed Hat Enterprise Linux Server 7.4 (64 bit) CPU:2 core, memory: 4 G, system disk: 100 GDebian Stretch 9.5 (64 bit) CPU:2 core, memory: 4 GB System disk: 100g step 2: prepare to install the package
Download the KubeSphere 2.1.0 installation package to the machine to be installed and enter the installation directory.
$curl-L https://kubesphere.io/download/stable/v2.1.0 > installer.tar.gz\ & & tar-zxf installer.tar.gz & & cd kubesphere-all-v2.1.0/scripts step 3: install KubeSphere
KubeSphere installation will automate environment and file monitoring, installation of platform-dependent software, automated installation of Kubernetes and etcd, and automated configuration of storage. After successful installation, click about to view the installed version through the upper right corner of the KubeSphere console.
Description:
Usually you don't need to modify any configuration, just install it.
The network plug-in defaults to calico. If you need custom installation parameters, such as network, storage, load balancer plug-in, optional components and other related configurations, you need to specify or modify them in the conf/common.yaml file. Refer to the cluster component configuration instructions.
Storage uses OpenEBS to provide persistent storage service based on Local Volume by default. OpenEBS supports dynamic application for PV to facilitate deployment and testing in scenarios where the storage server is not ready for initial installation. It is recommended to configure persistent storage in the formal environment.
Since the default value of the Cluster IP subnet network segment of the Kubernetes cluster is 10.233.0.0, the default of the subnet network segment of the pod is 10.233.64.0, so the IP address range of the node where KubeSphere is installed should not be duplicated with the above two network segments. In case of address range conflict, you can modify the parameters of kube_service_addresses or kube_pods_subnet in the configuration file conf/vars.yaml.
Refer to the following steps to start the all-in-one installation:
Note: the installation time is related to network conditions and bandwidth, machine configuration, number of installation nodes and other factors. The tested all-in-one mode takes about 20 minutes to install with the minimum configuration of the specification list when the network is good.
1. It is recommended that you use the root user installation and execute the install.sh script:
$. / install.sh
two。 Enter the number 1 and choose the first, all-in-one mode, to start the installation:
# KubeSphere Installer Menu###* 1) All-in-one* 2) Multi-node* 3) Quit## https://kubesphere.io/ 2019-11-12###Please input an option: 1
3. Verify that the KubeSphere single node installation is successful:
(1) after the installation script is executed, when you see the following "Successful" interface, the KubeSphere installation is successful.
Successsful!### Welcome to KubeSphere! # # Console: http://192.168.0.8:30880Account: adminPassword: P@88w0rdNOTE:Please modify the default password after login.###
Tip: if you need to view the above interface information again, you can view it by executing the cat kubesphere/kubesphere_running command under the installation package directory.
(2) after the installation is successful, the browser accesses the corresponding URL, such as http://{$IP}:30880, to enter the KubeSphere login interface. You can log in to the KubeSphere console with the default user name and password. Change the default password immediately after logging in. See getting started to help you get started with KubeSphere quickly.
Interface quick view
Check out the latest v2.1 video snapshot and visit Github.
KubeSphere (https://github.com/kubesphere/kubesphere) is an open source application-centric container management platform that supports deployment on any infrastructure and provides easy-to-use UI, which greatly reduces the complexity of daily development, testing, operation and maintenance, and aims to solve the storage, network, security and ease of use of Kubernetes itself. Help enterprises easily cope with business scenarios such as agile development and automatic monitoring and maintenance, end-to-end application delivery, micro-service governance, multi-tenant management, multi-cluster management, service and network management, image warehouse, AI platform, edge computing and so on.
Thank you for your reading, the above is the content of "how to deploy Kubernetes and KubeSphere to Linux". After the study of this article, I believe you have a deeper understanding of how to deploy Kubernetes and KubeSphere to Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.