This article introduces the fastest way to install Kubernetes and experience the core features of KubeSphere. All-in-one mode can install Kubernetes V1.15.5 and KubeSphere on a Linux machine with one click.

Tip:

– KubeSphere 2.1 supports custom installation of functional components. Users can select components based on service requirements and machine configuration. By default, minimal installation is enabled.

– If online installation is used on the cloud platform, you can increase the bandwidth to speed up the installation.

The premise condition

You are advised to disable the network firewall.

Step 1: Prepare the host

Prepare a host that meets the requirements based on the following node specifications and start the installation in all-in-one mode. To prevent software version conflicts, select a clean host.

Description:

– If ubuntu 16.04 is used, the latest version 16.04.5 is recommended.

– If ubuntu 18.04 is used, use the root user account.

– If the sudo command is not installed in Debian, run the apt update && apt install sudo command as user root to install the sudo command before installation.

The operating system The minimum configuration
CentOS 7.5 (64 bit) CPU: 2 cores, memory: 4 GB, System disk: 100 GB
Ubuntu 16.04/18.04 LTS (64 bit) CPU: 2 cores, memory: 4 GB, System disk: 100 GB

Red Hat Enterprise Linux Server 7.4 (64 bit) CPU: 2 cores, memory: 4 GB, System disk: 100 GB

Debian Stretch 9.5 (64 bit) CPU: 2 cores, memory: 4 GB, System disk: 100 GB

Step 2: Prepare the installation package

Download the KubeSphere 2.1.0 installation package to the machine to be installed and go to the installation directory.

https://kubesphere.io/download/stable/v2.1.0 > $curl - L installer. Tar. Gz \ && tar - ZXF installer. Tar. Gz && CD Kubesphere - all - v2.1.0 / scriptsCopy the code

Step 3: Install KubeSphere

The KubeSphere installation process will automate environment and file monitoring, installation of platform dependent software, automatic installation of Kubernetes and ETCD, and automatic configuration of storage. After successful installation, you can view the installed version by clicking on about in the upper right corner of the KubeSphere console.

Description:

– Usually you do not need to modify any configuration, just install it.

– The default network plug-in is Calico. If you want to customize installation parameters, such as network, storage, load balancer plug-ins, and optional components, specify or modify them in the conf/common.yaml file. For details, see Cluster Component Configuration.

N/A Storage By default, OpenEBS provides the persistent storage service based on the Local Volume. OpenEBS supports dynamic PV application, which facilitates deployment and testing in the scenario where the initial installation is performed but no storage server is available.

– The default IP subnet of Kubernetes Cluster is 10.233.0.0/18 and the default SUBNET of Pod is 10.233.64.0/18. Therefore, the IP address range of the node where KubeSphere is installed should not be the same as that of the preceding two network segments. If the IP address range conflicts, modify kube_service_addresses or kube_POds_subnet in the conf/vars.yaml configuration file.

Perform the following steps to start the all-in-one installation:

Note: The installation time depends on the network and bandwidth, machine configuration, and the number of nodes to be installed. In the tested all-in-one mode, the installation time is about 20 minutes with the minimum configuration of the specification list when the network is good.

1. You are advised to install the software as user root. Run the install.sh script:

$ ./install.shCopy the code

2. Enter 1 to select the first mode (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
Copy the code

3. Verify that the KubeSphere single-node installation is successful:

(1) After the installation script is executed, if Successful is displayed, KubeSphere is successfully installed.

successsful! ##################################################### ### Welcome to KubeSphere! # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Console: http://192.168.0.8:30880 Account: admin Password: P @ 88 w0rd NOTE: both Please modify the default password after login. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #Copy the code

Note: To view the preceding information, run cat kubesphere/kubesphere_running in the installation package directory.

(2) After the installation is successful, the browser can access the corresponding URL, such as http://{$IP}:30880, you can enter the KubeSphere login interface, you can use the default user name and password to log in to the KubeSphere console experience, please immediately change the default password after login. See Quick Start to get up to speed on KubeSphere.

Interface tabled fast

For a quick look at the latest V2.1 videos, also visit Github.

KubeSphere (https://github.com/kubesphere/kubesphere) is an open source application centered container management platform, support for deployment on any infrastructure, and provides a simple and easy to use UI, greatly reduces the complexity of the development, testing, and operational daily, Kubernetes is designed to solve the storage, network, security and ease of use of Kubernetes itself exist pain points, help enterprises easily cope with agile development and automated monitoring operation 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 other business scenarios.