[K8S&K3S]The establishment of experimental environment
2020-07-14
4 min read
Environmental preparation
Environmental list
Before the experimental tests , be prepared to deploy the system server environment for testing.
I prepared the following environment
- test system
- windos10
- ubuntu18.04
- centos7
- mac os10.15.5
- Using configuration
- 1 Core and 75MB (k3s Agent minimum requirement )
- 1 Core and 512MB (k3s Server minimum requirement )
- 1 Core and 1GB (Rancher 2.2 Server minimum requirement )
- 1 Core and 2GB (Rancher 2.x Server + K3S Server + K3S Agent minimum requirement)
- 2 Core and 4GB (k8s minimum requirement )
- 4 Core and 4GB (k3s Slave recommended configuration)
Real environment building process
-
windos10 (LEGION laptop Y700P i5 8300H 16GB )
- open Hyper-V and isntall minikube deploy single k8s
- Use Virtual Machine to simulate the Linux environment of Ubuntu 18.04 and CentOS7(that i recommand)
-
ubuntu18.04(Assembled desktop i3 4 GB )
- Use Virtual Machine to simulate the Linux environment of Ubuntu 18.04
-
mac os10.15.5(i5 9400F 16GB)
- Use multipass. Allows users to coordinate the creation, administration and maintenance of the Ubuntu Linux virtual machine.
-
tencent cloud Online cloud service providers
- I rent the hourly billing server and can directly select any configured machine to install ubuntu 18.04 or CENTOS 7 system images
- ( That's what I recommend Due to the restrictions of the Internet environment in China, the Google warehouse cannot be accessed smoothly .
- The server in Silicon Valley can be rented directly and smoothly to pull the experimental image)
- I rent the hourly billing server and can directly select any configured machine to install ubuntu 18.04 or CENTOS 7 system images
Explanation of experimental environment selection
-
Win10 can install single-node K8S with minikube
- Win10 systems have the highest market occupancy and developers can test k8S deployment services in a Win10 environment.This is not supported by K3S
-
Mac os Not being able to deploy k3S and K8S directly can be implemented with virtual machines.
- Win10 can also be implemented with the help of virtual machine, so the subsequent only record virtual machine environment deployment. The specific deployment within the virtual machine will be categorized into Linux environment deployment
-
CentOS7
- A Linux distribution of RHEL . Most companies in China use it
- K8s can be well compatible due to its maturity
- K3s is not fully mature and is officially compatible with Ubuntu18.04 but not fully compatible with CentOS.
-
Ubuntu18.04
- Simple, stable, and easy to use are different from CentOS
- Linux users use Ubuntu on a daily basis
- K3s already has very good support for it
- The K8S is very mature and certainly can be used smoothly
Summary of experimental environment
Mac OS and Win10
- The vast majority of developers are using systems
-Windows 10 and Mac OS don't have full K8S and K3S adapters,In most cases, virtual machines are also required for installation and deployment.
CentOS 7
- CentOS is mature and secure and used by most businesses.
- Suitable for mature K8S technology.
- K3s has some drawbacks but is still trying to fit in and may be perfect later
Ubuntu18.04
-Ubuntu Linux systems with a high user base are both user interface and hardware compatible
- Both K8S and K3S work well together
- The best area for Ubuntu to be used is the desktop operating system. Not the server operating system. Ubuntu consumes hundreds of megabytes of drivers and precious memory
finally
If you find any problems with my article, please point out that I will fix them immediately.
I am also a beginner please forgive me.