Creating and deleting Kubernetes clusters – LS Cloud

Limitations

  • You cannot create Kubernetes clusters with version 1.15.x.

Prerequisites

  • The Kubernetes-as-a-service component is installed. It can be deployed along with the compute cluster or later.
  • You have a network that will interconnect the Kubernetes master and worker nodes. It can be either a shared physical network or a virtual network linked to a physical one via a virtual router. The virtual network needs to have a gateway and a DNS server specified.
  • An SSH key is added. It will be installed on both the master and worker nodes.
  • You have enough resources for all of the Kubernetes nodes, taking their flavors into account.
  • It is also required that the network where you create a Kubernetes cluster does not overlap with these default networks:
    • 10.100.0.0/24—Used for pod-level networking
    • 10.254.0.0/16—Used for allocating Kubernetes cluster IP addresses

To create a Kubernetes cluster

  1. Go to the Kubernetes clusters screen, and then click Create on the right. A window will open where you can set your cluster parameters
  2. In the Cluster section, select a Kubernetes version, enter a cluster name, and select an SSH key.
  3. In the Network section, select a network that will interconnect the Kubernetes nodes in the cluster. If you select a virtual network, decide whether you need access to your Kubernetes cluster via a floating IP address:
    • If you select None, you will not have access to the Kubernetes API.
    • If you select For Kubernetes API, a floating IP address will be assigned to the master node or to the load balancer if the master node is highly available.
    • If you select For Kubernetes API and nodes, floating IP addresses will be additionally assigned to all of the Kubernetes nodes (masters and workers).
  4. In the Master node section, select a flavor, and then choose whether or not to enable high availability for the master node. If you enable high availability, three master node instances will be created. They will work in the Active/Active mode.
  5. In the Container volume section, select a storage policy, and then enter size for volumes on both master and worker nodes.
  6. In the Default worker group section, set a number of workers to create, and then select a flavor for each worker.
  7. Click Create.

Creation of the Kubernetes cluster will start. The master and worker nodes will appear on the Virtual machines screen, while their volumes will show up on the Volumes screen.

After the cluster is ready, click Kubernetes access for instructions on how you can access the dashboard.

To delete a Kubernetes cluster

Click the required Kubernetes cluster on the Kubernetes clusters screen and click Delete. The master and worker VMs will be deleted along with their volumes.

Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on June 21, 2022

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support