vNoob 09月29日 10:48
Harvester部署教程
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

Harvester是一个基于Kubernetes的虚拟机和容器平台,提供超融合基础设施解决方案。本文介绍了如何在VMware Workstation中部署Harvester,包括创建虚拟机、选择操作系统、配置网络和存储等步骤。通过Harvester,用户可以利用KubeVirt进行虚拟化管理,使用Longhorn进行存储管理,并借助Grafana和Prometheus进行监控。部署过程详细且易于理解,适合对Kubernetes和虚拟化技术感兴趣的读者。

💻 Harvester是一个基于Kubernetes的虚拟机和容器平台,提供超融合基础设施解决方案,整合了多种开源产品,如Elemental Linux、KubeVirt、Longhorn和Grafana/Prometheus。

🔧 部署Harvester需要在VMware Workstation中创建虚拟机,选择Linux OpenSUSE 64位操作系统,并确保至少有4核CPU和8GB内存,推荐使用桥接网络和至少250GB的磁盘空间。

🌐 安装过程中需要配置网络设置,包括静态IP、DNS和虚拟IP,并创建集群令牌和节点密码,确保网络安全。

📊 Harvester利用KubeVirt进行虚拟化管理,Longhorn提供分布式块存储和分层,Grafana和Prometheus提供强大的监控和日志功能,实现全面的 observability。

A couple of months ago I was looking around for something new to try in the homelab. Since I had done Kubernetes last year when I was getting certified, I thought it might be a good idea to try out KubeVirt. Kubevirt sits on top of Kubenetes and allows one to deploy more traditional VMs. With my existing Kubernetes deployment and my history with VMware, this seemed like a good fit.

That is until my buddy Eric Shanks did a blog post about Harvester. After five minutes of researching Harvester, I knew this was what I would do next.

What is Harvester?

Harvester is a virtual machine and container platform built on Kubernetes. From the website, it is “a modern, open, interoperable, hyperconverged infrastructure (HCI) solution built on Kubernetes.”

Harvester uses several open-source products to build its platform.

    Linux OS. Elemental for SLE-Micro 5.3 is at the core of Harvester and is an immutable Linux distribution designed to remove as much OS maintenance as possible in a Kubernetes cluster.Built on top of Kubernetes. Kubernetes has become the predominant infrastructure language across all form factors, and Harvester is an HCI solution with Kubernetes under the hood.Virtualization management with KubeVirt. KubeVirt provides virtualization management using KVM on top of Kubernetes.Storage management with Longhorn. Longhorn provides distributed block storage and tiering.Observability with Grafana and Prometheus. Grafana and Prometheus provide robust monitoring and logging.
https://docs.harvesterhci.io/v1.3

This ticks a lot of boxes for me. First, I did a series of posts on Kubernetes a bit over a year ago. Second, I was already interested in Kubevirt. Lastly, although I didn’t make any posts about it, I did a Proof of Concept for a monitoring solution a few years ago which heavily used Grafana and Prometheus. All in all, Harvester seems like a great match for me.

I have some dedicated hardware where I want to deploy Harvester. However, I decided to first deploy it to VMware Workstation to get a feel for the process and poke at it until I get a more permanent home setup.

VM Deployment

We will start by creating a new VM in Workstation:

Select Custom as we will need to make some changes as we go which are different than just Typical

The compatibility will start with one for Workstation, but we need to ESXi. Whenever I did not choose ESXi I had network issues with the VM and could not finish the deployment.

Choose the Harvester ISO

For Operating System, select Linux and OpenSUSE 64bit

Name the VM and the location it will be stored

For processors, I found anything less than 4 and the required pods wouldn’t be able to spin up. The system requirements for Harvester are 8CPU minimum, but I was able to get it deployed with 4.

Memory is similar, the requirements list 32, but my deployment was able to stand up with 8.

Select Bridged Networking for the VM to utilize the host nic.

SCSI for disk

Create a new virtual disk

I tried to deploy this a few times with less than 250GB of space, but the installer wouldn’t let me proceed. 250 was the minimum limit for me.

After this finish up the wizard and boot up the VM to finish the deployment

Installing Harvester

This is a fresh Harvester install so we begin with choosing “Create a new Harvester cluster”.

I only have one disk attached to my VM so I choose the defaults here. Also, this screenshot is from a time I tried the install with a smaller disk size. Just pretend the 50G is 250G.

Decide on a hostname

Configure networking. If you deployed the VM with Workstation compatibility, you may have issues here. When I had select Workstation compatibility, my VM would not recognize the nic and so I could never proceed past this step.

I am choosing a static configuration.

Enter your DNS settings

Configure the Virtual IP

Choose a cluster token.

Create a password for the node.

NTP Settings

The next three screens you are able to leave blank which I did. They are Proxy settings, an option to import SSH keys, and optional Harvester config.

Assuming everything looks good your installation should kick off.

Once it is done your VM should look like this.

My installation took somewhere between 15 to 30 minutes before the status changed to “Ready”, so patience is important. If it takes too long though, it could be something is wrong and you may need to troubleshoot in the VM.

Hit the Management URL in a browser and choose your password for logging in.

Now at long last we are done with deployment and in Harvester! Enjoy!!!

I will be posting more soon as I mess around with my installation. Thanks!

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Harvester Kubernetes 虚拟化 超融合基础设施 VMware Workstation
相关文章