Developer Mode Installation

Developer mode (dev mode) is intended to be used for testing and development purposes.

This video shows the dev mode installation.

Requirements

  • We assume Multus is installed across your cluster and a corresponding NetworkAttachmentDefinition CRD was created.
  • If you are using an RKE cluster, please ensure the ipv4.ip_forward is enabled for the CNI plugin so that the pod network works as expected, related issue: #94.

Install as an App

Harvester can be installed on a Kubernetes cluster in the following ways:

  • Install with the Helm CLI
  • Install as a Rancher catalog app, in which case the harvester/harvester repo is added to the Rancher Catalog as a Helm v3 app

Please refer to the Harvester Helm chart for more details on installing and configuring the Helm chart.

Requirements

The Kubernetes node must have hardware virtualization support.

To validate the support, use this command:

  1. cat /proc/cpuinfo | grep vmx

Option 1: Install using Helm

  1. Clone the GitHub repository:

    1. git clone https://github.com/harvester/harvester.git --depth=1
  2. Go to the Helm chart:

    1. cd harvester/deploy/charts
  3. Install the Harvester chart with the following commands:

    1. ### To install the chart with the release name `harvester`:
    2. ## Create the target namespace
    3. kubectl create ns harvester-system
    4. ## Install the chart to the target namespace
    5. helm install harvester harvester \
    6. --namespace harvester-system \
    7. --set longhorn.enabled=true,minio.persistence.storageClass=longhorn

Option 2: Install using Rancher

Tip

You can create a testing Kubernetes environment in Rancher using the Digital Ocean cloud provider. For details, see this section.

  1. Add the Harvester repo https://github.com/harvester/harvester to your Rancher catalogs by clicking Global > Tools > Catalogs.
  2. Specify the URL and name. Set the branch to stable if you need a stable release version. Set the Helm version to be Helm v3. harvester-catalog.png
  3. Click Create.
  4. Navigate to your project-level Apps.
  5. Click Launch and choose the Harvester app.
  6. (Optional) You can modify the configurations if needed. Otherwise, use the default options.
  7. Click Launch and wait for the app’s components to be ready.
  8. Click the /index.html link to navigate to the Harvester UI, as shown in the figure below: harvester-app.png

Digital Ocean Test Environment

Digital Ocean supports nested virtualization by default.

You can create a testing Kubernetes environment in Rancher using the Digital Ocean cloud provider.

We recommend using the 8 core, 16 GB RAM node, which will have nested virtualization enabled by default.

This screenshot shows how to create a Rancher node template that would allow Rancher to provision such a node in Digital Ocean:

do.png

For more information on how to launch Digital Ocean nodes with Rancher, refer to the Rancher documentation.