Karbon: Creating a Kubernetes Cluster

Overview

Before we can deploy an application using kubernetes we need to create a Kubernetes cluster.

The cluster that we are going to create consists out of the following VMs:

  • 1 Master node (VM)

  • 3 Worker node (VMs)

  • 3 etcd nodes (VMs)

Note

For more information on the terms master, worker and etcd, please look at https://kubernetes.io/docs/concepts/.

Create a Karbon Kubernetes Cluster

In this exercise you will create a production ready Kubernetes cluster with Nutanix Karbon.

Navigate to Prism Central > Select the Three Dashes > Karbon and ensure you see a ‘Karbon is successfully enabled’ notification.

Click the link to open the Karbon Console.

../../_images/karbon_create_cluster_0.png

Next click + Create Cluster.

../../_images/karbon_create_cluster_2.png

Fill in the following:

Name and Environment

  • Name - wordpress-initialsLowerCase

  • Cluster - Leave Default selected

  • Kubernetes Version - 1.10.3

  • Host OS Image - centos

../../_images/karbon_create_cluster_3.png

Click Next

Worker Configuration

Note

This defines the number of worker nodes that will run the Kubernetes pods.

Leave all defaults

../../_images/karbon_create_cluster_4.png

Click Next.

Master Configuration

Note

This defines the number of master nodes that controls the Kubernetes cluster, and the number of etcd VMs, which manages the cluster state.

Leave all defaults.

../../_images/karbon_create_cluster_5.png

click Next.

Network

Note

We use flannel as the network provider. More information on Flannel can be found here: https://github.com/coreos/flannel#flannel

  • Network Provider - Flannel

  • VM Network - Primary

  • Service CIDR - Leave the default of 172.19.0.0/16

  • Pod CIDR - Leave the default of 172.20.0.0/16

../../_images/karbon_create_cluster_6.png

Click Next

Storage Class

  • Storage Class Name - default-storageclass-initialsLowerCase

  • Prism Element Cluster - Leave default selected

  • Cluster Username - admin

  • Cluster Password - HPOC Password

  • Storage Container Name - default-container-XXXXXXX

  • File System - ext4

../../_images/karbon_create_cluster_7.png

Click Create

Note

Wait until the cluster has been created before proceeding

../../_images/karbon_create_cluster_20.png

During the creation of the Kubernetes cluster there will have been created:

  • VMs

../../_images/karbon_create_cluster_10.png
  • Persistent Storage as VolumeGroup

../../_images/karbon_create_cluster_18.png ../../_images/karbon_create_cluster_19.png

Cluster properties

In the Karbon UI, click on your cluster “wordpress-initialsLowerCase

../../_images/karbon_create_cluster_21.png

This will take you to the Summary page for your cluster.

../../_images/karbon_create_cluster_22.png

You can also click into the following to see specific information:

  • Storage Classes

../../_images/karbon_create_cluster_23.png
  • Volume’s

../../_images/karbon_create_cluster_24.png
  • Add-on’s

../../_images/karbon_create_cluster_25.png

You now have a running Kubernetes Cluster called “wordpress-initialsLowerCase”.

Takeaways

  • Nutanix Karbon makes it very easy to create and manage kubernetes clusters