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, an openelb-controller Deployment containing an openelb-controller Pod and an openelb-speaker DaemonSet containing openelb-speaker Pods will be installed in the cluster. The openelb-controller Pod is used to implement the IPAM for service load balancer IPs, while the openelb-speaker Pods are used to announce the service load balancer IPs.

  • After the installation is complete, you can set node selectors to ensure that the load traffic runs on specific nodes. 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.

  2. On the top navigation bar, choose App Store, and search openelb.

    search-openelb

  3. 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

  4. Choose Application Workloads > Pods on the left navigation bar to check whether the status of openelb-controller and openelb-speaker 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 should first delete all Services that use OpenELB.

Last modified May 29, 2024: update doc for release 0.6.0 (87be3d0)