当前位置:网站首页>Kubesphere virtualization KSV installation experience
Kubesphere virtualization KSV installation experience
2022-07-02 08:37:00 【freesharer】
KSV brief introduction
KubeSphere virtualization (KSV) It is a lightweight virtual machine management platform , Support single node and multi node deployment , Simple and easy to use ,KSV Adopt the architecture of separation of front and back end , The cloud native oriented design is realized , Loose coupling design of each module , As an enterprise virtualization platform ,KSV Easy to use Web Console , Help users quickly realize the virtualization of enterprise hardware resources .
Official website :https://kubesphere.cloud/ksv/
KSV Underlying principle
KSV Bottom based K3S 、 Kubevirt And rook ceph Technology , The underlying principle is described in the following table :
| name | describe |
|---|---|
| virtual machine | KSV Bottom use KubeVirt plug-in unit , Support the lifecycle management of virtual machines 、 State management and connection management . |
| The Internet | KSV Bottom use Multus plug-in unit , Create on node network card MacVTap( Device drivers for simplifying virtualization bridging Networks ) As the network card of virtual machine . By setting IP pool , The virtual machine can be in the same network segment as the server node , Convenient for users to access . |
| Mirror image | KSV Bottom use CDI The plug-in imports the image into the persistent volume , Create system disk by cloning persistent volume . |
| Storage | KSV Support and Kubernetes Of CSI Plug in linkage , Realize the management of storage related resources . |
Product architecture :
KSV install
Prerequisite :
- The operating system version of the server node needs to be Ubuntu 18.04 / Ubuntu 20.04、CentOS 7.9 / CentOS 8.5 , Other operating systems have not been fully tested , There may be unknown problems . More operating systems will be supported in the future .
- Minimum hardware configuration
4 nucleus /8 GB/ System disk 100GB, The recommended configuration8 nucleus /16 GB/ System disk 100 GB - The server node must have at least additional 1 Unformatted and unpartitioned disks , or 1 Unformatted partitions . The minimum configuration of this disk or partition is 100 GB, Recommended configuration is 200 GB. be used for rook ceph osd.
- Server nodes need to support virtualization . If the server node does not support virtualization ,KSV Will run in analog mode . This mode will occupy more resources , And may affect performance . If you choose vmware vsphere、vmware workstation、virtualbox virtual machine , You need to enable nested virtualization , It is recommended to deploy bare metal in the production environment .
install KSV:
Prepare one Ubuntu 20.04 operating system , Adopt single node installation .
1、 Execute the following command to download the installation package ( The size of the installation package is about 3.7 GB):
curl -OL https://virtualization.kubesphere.cloud/v1.4.0/kubesphere-virtualization-amd64-v1.4.0.tar.gz
2、 Execute the following command to unzip the installation package :
tar -zxvf kubesphere-virtualization-amd64-v1.4.0.tar.gz
3、 Execute the following command to enter the directory generated after unpacking the installation package :
cd kubesphere-virtualization-amd64
4、 Execute the following command to start the installation :
./install.sh -a --ratio < Oversold ratio >
Parameters --ratio Optional , Is used to specify the KSV Oversold ratio of clusters , The value is 1 to 4 The integer of . If not set --ratio Parameters , The default value of oversold ratio is 2.
Oversold ratio will determine KSV Total number of virtual machines that can be created . Total number of virtual machines that can be created = colony CPU Total number of cores x Oversold ratio .
5、 If the following information is displayed, the installation is successful :
#####################################################
### Welcome to KubeSphere Virtualization! ###
#####################################################
Console: http://172.16.0.59:30880
Username: admin
Password: [email protected]
NOTE:
Please change the default password of the admin user
after login.
#####################################################
https://kubesphere.cloud/ksv/ 2021-04-29 14:03:45
#####################################################
View the cluster node information , Bottom layer operation k3s And containerd
[email protected]:~# kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
ubuntu Ready control-plane,master,worker 13h v1.21.6+k3s1 192.168.72.14 <none> Ubuntu 20.04.4 LTS 5.4.0-113-generic containerd://1.4.11-k3s1
View the created Pods, Bottom layer operation kubevirt、rook-ceph、prometheus、calico And so on
[email protected]:~/kubesphere-virtualization-amd64# kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
cdi cdi-apiserver-6fd8c49c78-rsdcp 1/1 Running 0 7m6s
cdi cdi-deployment-7c98f568cf-sbds5 1/1 Running 0 7m
cdi cdi-operator-745df7d6f7-zv7pz 1/1 Running 0 7m48s
cdi cdi-uploadproxy-7f644f8cd4-8f2vc 1/1 Running 0 6m56s
default importer-img-zelkv348 0/1 Pending 0 5m
kube-system calico-kube-controllers-5544f8d8d9-v8sn2 1/1 Running 0 13m
kube-system calico-node-ldrzj 1/1 Running 0 13m
kube-system coredns-7448499f4d-sv89f 1/1 Running 0 13m
kube-system kube-multus-ds-amd64-cmrxs 1/1 Running 0 7m51s
kubekey-system kubekey-controller-manager-8b6fbfff5-tcvlj 2/2 Running 0 13m
kubesphere-controls-system default-http-backend-6c6cb9b454-bvfp7 1/1 Running 0 8m23s
kubesphere-controls-system kubectl-admin-86995f5c5-rkrh6 1/1 Running 0 5m
kubesphere-monitoring-system alertmanager-main-0 2/2 Running 0 5m45s
kubesphere-monitoring-system kube-state-metrics-5b9cfc944d-77dwg 3/3 Running 0 5m55s
kubesphere-monitoring-system node-exporter-svknb 2/2 Running 0 5m56s
kubesphere-monitoring-system notification-manager-deployment-57cfc676d8-ghcrl 1/1 Running 0 5m13s
kubesphere-monitoring-system notification-manager-operator-94f799b96-bxvbp 2/2 Running 0 5m21s
kubesphere-monitoring-system prometheus-k8s-0 3/3 Running 1 5m51s
kubesphere-monitoring-system prometheus-operator-68c489748c-jnmj9 2/2 Running 0 5m58s
kubesphere-system ftp-server-6dbf5bff55-c9sgh 1/1 Running 0 7m50s
kubesphere-system ks-apiserver-5bf4bbc657-m7n6q 1/1 Running 0 4m57s
kubesphere-system ks-console-58cf78bb45-9w52f 1/1 Running 0 8m10s
kubesphere-system ks-controller-manager-59fd54bdb8-94jnx 1/1 Running 0 4m57s
kubesphere-system ks-installer-c45748b6f-t6xlx 1/1 Running 0 13m
kubesphere-system minio-576546f95d-rd4mq 1/1 Running 0 11m
kubesphere-system sync-images-job-hxxs8 0/1 Completed 0 7m51s
kubesphere-virtualization-system express-network-agent-79l5t 1/1 Running 0 7m39s
kubesphere-virtualization-system express-network-controller-6c9bd5577c-rtv7m 1/1 Running 0 7m39s
kubevirt virt-api-5c5498b8f4-h4nq4 1/1 Running 0 6m45s
kubevirt virt-api-5c5498b8f4-w5sxg 1/1 Running 0 6m47s
kubevirt virt-controller-64cc9949b8-6ghh5 1/1 Running 0 6m20s
kubevirt virt-controller-64cc9949b8-sd98r 1/1 Running 0 6m19s
kubevirt virt-handler-x5hn7 1/1 Running 0 6m20s
kubevirt virt-operator-74fc8b4f97-6fjqs 1/1 Running 0 7m49s
rook-ceph csi-rbdplugin-provisioner-76d45b5b57-lt7vn 6/6 Running 0 11m
rook-ceph csi-rbdplugin-rmw58 3/3 Running 0 11m
rook-ceph rook-ceph-crashcollector-ubuntu-d575979d4-drl2k 1/1 Running 0 10m
rook-ceph rook-ceph-mgr-a-c7bf4b69b-jvrj4 1/1 Running 0 10m
rook-ceph rook-ceph-mon-a-86cc8985f7-z9jdg 1/1 Running 0 11m
rook-ceph rook-ceph-operator-6457f8c765-cdx82 1/1 Running 0 12m
rook-ceph rook-ceph-osd-0-5b9d4bfc56-67598 1/1 Running 0 10m
rook-ceph rook-ceph-osd-prepare-ubuntu-wt8jq 0/1 Completed 0 10m
rook-ceph rook-ceph-tools-568c5cddd5-fmxtt 1/1 Running 0 12m
rook-ceph rook-discover-hd496 1/1 Running 0 11m
rook-ceph snapshot-controller-0 1/1 Running 0 12m
KSV Create a virtual machine
1、 newly build IP pool, The network card name and network segment should be consistent with the cluster node 
2、 Upload the image
Default by oneself ubuntu 20.04, Upload here Ubuntu 22.04 LTS cloud image LTS as well as windows server 2022 Mirror image :

3、 Create the following virtual machines

4、 see linux virtual machine

stay unbut Virtual machine installation nginx
apt update -y
apt install -y nginx
systemctl status nginx
Virtual machines can be accessed directly outside the cluster IP Address 
5、windows Virtual machine creation process
Choose a mirror image :
Select Load Driver 
Choose the driver 

Start installation 

VNC Sign in windwos server 2022

边栏推荐
- Web security -- core defense mechanism
- Hcia - Application Layer
- HCIA—数据链路层
- 文件上传-upload-labs
- [dynamic planning] p4170: coloring (interval DP)
- Li Kou daily one question brushing summary: binary tree chapter (continuous update)
- Dip1000 runaway
- CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?
- Gateway 简单使用
- 使用wireshark抓取Tcp三次握手
猜你喜欢
随机推荐
Sqli labs (post type injection)
Programming ape learning English - imperative programming
Linked list classic interview questions (reverse the linked list, middle node, penultimate node, merge and split the linked list, and delete duplicate nodes)
c语言自定义类型——结构体,位段(匿名结构体,结构体的自引用,结构体的内存对齐)
CarSim problem failed to start solver: path_ ID_ OBJ(X) was set to Y; no corresponding value of XXXXX?
Dip1000 implicitly tagged with fields
[blackmail virus data recovery] suffix Hydra blackmail virus
Use Wireshark to grab TCP three handshakes
Causes of laptop jam
Minecraft模组服开服
Force buckle method summary: sliding window
双向链表的实现(双向链表与单向链表的简单区别联系和实现)
Sentinel easy to use
【无标题】
HCIA - data link layer
2022 Heilongjiang's latest eight member (Safety Officer) simulated test question bank and answers
方法递归(斐波那契数列,青蛙跳台阶,汉诺塔问题)
Matlab other
Use the kaggle training model and download your own training model
D interface and domain problems









