Alibaba Cloud Connect to Kato

This article will introduce how to automatically connect or create an Alibaba Cloud Kubernetes managed cluster based on Kato Cloud.

Prerequisites

Before you begin, please check the following prerequisites:

  1. Understand Kato Cloud and proceed to register and Login.
  2. Make sure that your Alibaba Cloud account supports on-demand purchase of resources, such as account balance greater than 100 dollars and real-name authentication.
  3. Ensure that the following services have been activated and authorized: Create a default role for container services, Enable ESS Elastic Scaling Service, Authorized ESS Elastic Scaling Service, Open NAS Service
  4. Create an independent RAM user in the enterprise RAM access control page of the Alibaba Cloud console, create the user’s Access Key, and obtain the corresponding Secret Key. For details, please refer to here.
  5. Grant RAM users: AliyunCSFullAccess, AliyunECSFullAccess, AliyunVPCFullAccess, AliyunRDSFullAccess, AliyunNASFullAccess, AliyunSLBFullAccess permissions.

Note: We will strictly protect the security of AccessKey. If you have security concerns, you can delete your account after the cluster is connected to recover the permissions.

Installation Steps

There are 4 steps to install Kato based on Alibaba Cloud’s Kubernetes managed cluster, which are Select vendor, Select (create) Kubernetes cluster, Initialize Kato cluster, and Complete connection.

1. Select the Supplier

Currently only supports docking with Alibaba Cloud, and the subject of this article is also centered on Alibaba Cloud. Support for vendors such as Huawei Cloud, AWS and Tencent Cloud will be gradually opened up.

2. Select or Automatically Create a Kubernetes Managed Cluster

You can choose an existing ACK cluster to install Kato. In this case, the installation of Kato will not affect the operation of existing services in the cluster.

Of course, if you don’t have an ACK cluster yet, you can also ask Kato Cloud to call Alibaba Cloud’s API to purchase one. Before purchasing, you need to choose the desired configuration:

  • Area: The area where the machine is located, for example: us-east1 US (Virginia).

  • Name: Cluster name, please make sure it is unique.

  • Resource allocation:

    There are 3 configurations by default:

    • Minimum configuration: single node 2Core/8GB RAM, estimated at 2 dollars/hour as needed.
    • Common configuration: single node 4Core/16GB RAM, estimated 4 dollars/hour as needed.
    • Production configuration: single node 4Core/32GB RAM, estimated at 8 dollars/hour as needed.

    Of course, you can also choose a custom specification according to your actual needs. At this time, provide an Alibaba Cloud ECS specification. For ECS instance specifications, refer to Instance Specification Family.

  • Number of instances:

    The number of Kubernetes cluster nodes requires at least two nodes.

3. Initialize the Kato Cluster

Before initializing the Kato cluster, Kato Cloud will call Alibaba Cloud’s API to purchase RDS(1), NAS(1), and SLB(1), and the estimated cost is RMB 0.5 per hour.

  • RDS: The database type is MySQL, used to store Kato metadata.
  • NAS: Kato will use this NAS to create Storage Classes to provide data persistence for the entire Kato cluster.
  • SLB: The role of SLB is to provide load balancing capabilities for rbd-gateway.

Subsequently, Kato Cloud will call the API of kube-apiserver to create kato operator and Kato’s corresponding k8s resources.

4. Complete the Docking

After initializing the Kato cluster, you need to configure the cluster ID and cluster name.

  • Cluster ID: The unique identifier of the cluster in Kato Cloud. Once confirmed, it cannot be modified, such as kato.
  • Cluster name: The name of the cluster in Kato Cloud, which can be modified at will, for example: Development and Test Cluster.

Verify Installation

Go to the Cluster Management page and check the status of the cluster, as shown in the following figure:

Please note that the status of the Development Test Cluster is Running, indicating that the Kato installation was successful.

If you have any doubts during the installation and docking process, please post to community for technical support