Deploy KubeSphere on DigitalOcean Kubernetes

    This guide walks you through the steps of deploying KubeSphere on DigitalOcean Kubernetes.

    A Kubernetes cluster in DO is a prerequisite for installing KubeSphere. Go to your and refer to the image below to create a cluster from the navigation menu.

    You need to select:

    1. Kubernetes version (for example, 1.18.6-do.0)
    2. Datacenter region (for example, Frankfurt)
    3. Cluster capacity (for example, 2 standard nodes with 2 vCPUs and 4GB of RAM each)
    4. A name for the cluster (for example, kubesphere-3)

    config-cluster-do

    Note

    • To install KubeSphere 3.2.0 on Kubernetes, your Kubernetes version must be v1.19.x, v1.20.x, v1.21.x, or v1.22.x (experimental).
    • 2 nodes are included in this example. You can add more nodes based on your own needs especially in a production environment.
    • The machine type Standard / 4 GB / 2 vCPUs is for minimal installation. If you plan to enable several pluggable components or use the cluster for production, you can upgrade your nodes to a more powerfull type (such as CPU-Optimized / 8 GB / 4 vCPUs). It seems that DigitalOcean provisions the master nodes based on the type of the worker nodes, and for Standard ones the API server can become unresponsive quite soon.

    When the cluster is ready, you can download the config file for kubectl.

    • Install KubeSphere using kubectl. The following commands are only for the default minimal installation.

    When the installation finishes, you can see the following message:

    Now that KubeSphere is installed, you can access the web console of KubeSphere by following the steps below.

    • Go to the Kubernetes Dashboard provided by DigitalOcean.

      kubernetes-dashboard-access

    • Select the kubesphere-system namespace.

    • kubernetes-dashboard-edit

    • Change the type from to LoadBalancer. Save the file when you finish.

    • Access the KubeSphere’s web console using the endpoint generated by DO.

      access-console

      Tip

      Instead of changing the service type to , you can also access KubeSphere console via NodeIP:NodePort (service type set to ). You need to get the public IP of one of your nodes.

    • Log in to the console with the default account and password (admin/[[email protected]](https://kubesphere.io/cdn-cgi/l/email-protection)). In the cluster overview page, you can see the dashboard.