4.2. Managing Kubernetes Clusters

Self-service users can deploy ready-to-use Kubernetes clusters with persistent storage for managing containerized applications.

The prerequisites for creating a Kubernetes cluster are:

  • The Kubernetes-as-a-service component. It can be deployed along with the compute cluster or later (see the “Creating the Compute Cluster” or “Managing Add-On Services” section of the Administrator’s Guide).
  • A virtual router that links a public network to a private network that will interconnect the Kubernetes master and worker nodes. The public network must provide Internet access (for reaching the etcd discovery service). The compute API has to be accessible by means of any public network. The private network needs to have a gateway and a DNS server specified.
  • An SSH key that will be installed on both the master and worker nodes.
  • Enough resources for all of the Kubernetes nodes, taking their flavors into account.

To create a Kubernetes cluster, on the Kubernetes clusters screen, click Create on the right. A window will open where you can set your cluster parameters:

  1. In the Cluster section, select a Kubernetes version, enter a cluster name, and select an SSH key.

    ../_images/stor_image195_vz.png
  2. In the Network section, select a virtual router mentioned in the prerequisites above. It is also recommended to check the Use a floating IP address box. In this case, the Kubernetes nodes will be assigned public IP addresses, simplifying access to them.

    ../_images/stor_image196_vz.png
  3. In the Master node section, select a flavor and choose whether or not to enable high availability for the master node. If you enable HA, three master node instances will be created. They will work in the Active/Active mode.

    ../_images/stor_image197_vz.png
  4. In the Container volume section, select a storage policy and enter size for volumes on both master and worker nodes.

    ../_images/stor_image198_vz.png
  5. In the Workers section, set a number of workers to create and select a flavor for each worker.

    ../_images/stor_image199_vz.png
  6. Finally, 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 it on the Kubernetes clusters screen and click Delete. The master and worker VMs will be deleted along with their volumes.