Install OpenELB on KubeSphere

This document describes how to install and delete OpenELB on the KubeSphere web console.

NOTE

  • In a Kubernetes cluster, you only need to install OpenELB once. After the installation is complete, a openelb-manager Deployment that contains a openelb-manager Pod is installed in the cluster. The openelb-manager Pod implements the functionality of OpenELB for the entire Kubernetes cluster.
  • After the installation is complete, you can scale the openelb-manager Deployment and assign multiple OpenELB replicas (openelb-manager Pods) to multiple cluster nodes to ensure high availability. For details, see Configure Multiple OpenELB Replicas.

Prerequisites

You need to prepare a Kubernetes cluster with KubeSphere, and ensure that the Kubernetes version is 1.15 or later. OpenELB requires CustomResourceDefinition (CRD) v1, which is only supported by Kubernetes 1.15 or later. You can use the following methods to install KubeSphere:

OpenELB is designed to be used in bare-metal Kubernetes environments. However, you can also use a cloud-based Kubernetes cluster for learning and testing.

Install OpenELB on the KubeSphere Web Console

  1. Log in to the KubeSphere console and go to your workspace.

enter-workspace

  1. On the left navigation bar, choose Apps Management > App Repos, and click Add Repo on the right.

add-repo

  1. In the displayed dialog box, set App Repository Name (for example, kubesphere-test), set URL to https://charts.kubesphere.io/test, click Validate to check the URL, and click OK.

repo-spec

  1. Go to your project, choose Application Workloads > Apps on the left navigation bar, and click Deploy New Application on the right.

deploy-new-app

  1. In the displayed dialog box, click From App Templates.

from-app-templates

  1. Select kubesphere-test from the drop-down list and click openelb.

openelb-template

  1. Click Install and follow the wizard instructions to complete the installation. You can customize the chart configuration in the YAML file based on your requirements.

deploy-openelb

openelb-setting

openelb-yaml

  1. Choose Application Workloads > Pods on the left navigation bar to check whether the status of openelb-manager is running. If yes, OpenELB has been installed successfully.

verify-openelb

Delete OpenELB on the KubeSphere Web Console

To delete OpenELB on the KubeSphere web console, go to your project, choose Application Workloads > Apps on the left navigation bar, click openelb-operation on the right of the OpenELB application, and choose Delete from the drop-down list.

delete-openelb

NOTE

Before deleting OpenELB, you must first delete all Services that use OpenELB.