Tag Archives: VMware Tanzu Kubernetes Grid

VMware Tanzu Kubernetes Grid (TKG) Tanzu CLI Installation – Part 5

In the Previous post, we discussed abut VMWARE TANZU KUBERNETES GRID (TKG) ARCHITECTURE.

In this post (VMWARE TANZU KUBERNETES GRID (TKG) CLI INSTALLATION – PART 5) we are going to discuss how to install and initialize the Tanzu command line interface (CLI) on a
bootstrap machine.  As discussed in one of my previous post about bootstrapping.  Bootstrap machine is server or client machine that you use to deploy management and workload clusters from. Once the Tanzu CLI is installed, we can start deploying Tanzu Kubernetes Grid using the Tanzu CLI to create management cluster on the platform  that you use.  And later The Tanzu CLI then communicates with the management cluster to create and manage workload clusters for Day 2 prospective.

VMware supports Tanzu CLI binaries for Linux, MacOS, and Windows systems, which can be downloaded from VMware Product Download (https://my.vmware.com/en/web/vmware/downloads/#all_products) site. 

Download Tanzu CLI and kubectl

  1. Go to https://my.vmware.com/en/web/vmware/downloads/#all_products  and log in with your My VMware credentials, which must have permission to download binaries.
  2. Go to All Downloads -> Infrastructure & Operations Management -> VMware Tanzu Kubernetes Grid -> Click Download Product.

3.  Under Download VMware Tanzu Kubernetes Grid Page -> Select VMware Tanzu Kubernetes Grid -> and Click GO TO DOWNLOADS.

4. Select the correct VMware Tanzu CLI Version and Platform on which you want to install. (In my case, I am downloading VMware Tanzu CLI for Windows). And Click Download Now.

5. Go to the Kubectl 1.20.5 for VMware Tanzu Kubernetes Grid 1.3.1 section of the download page. And Select the correct platform and version of Kubectl to install. (In my case, I am downloading kubectl cluster cli v1.20.5 for Windows). And Click Download Now.

6. On the system, where you want to install Tanzu command line interface (CLI) and Kubectl, create a new directory named tanzu.

7. Copy the downloaded binaries to tanzu folder and Unpack them using
tar -xvf command.

After you unpack the binaries, you will see a cli folder with multiple
subfolders and files.

8. Unzip the kubectl binary file from kubectl-windows-v1.20.5-vmware.1.exe.gz

Install the Tanzu CLI

Now we are ready to Install the Tanzu CLI.  I am going to install this on Windows Server, If you need to install on Linux or MacOS. Please refer the VMware document how to install on Linux / MacOS.

  1. Create a new folder under Program Files\Tanzu.
  2. copy the core\v1.3.0\tanzu-corewindows_
    amd64.exe file from CLI folder into the new Program Files\tanzu folder.

3.  Just to simplify, rename the tanzu-core-windows_amd64.exe to tanzu.exe.

4. Make sure you have Full Control permission on tanzu folder.

5. Now set Environment Variables for Tanzu CLI.

6. run tanzu version to check that the correct version of the CLI is properly installed.

7. After we have installed the tanzu core executable, must install the CLI plugins related to Tanzu Kubernetes cluster management and feature operations.

8. Navigate to the tanzu folder that contains the cli folder and Run the below command from the tanzu directory to install all the plugins.

  • tanzu plugin install –local cli all
  • tanzu plugin list

you can see list of all installed plugins as showing below.

Now let’s install kubectl compatible with the Tanzu CLI.

  1. Navigate to the folder where we have downloaded for kubectl executable.
  2. Just to simplify, rename the kubectl-windows-v1.20.5-vmware.1.exe to kubectl.exe.
  3. Run the below command to check the installed kubectl version
  • kubectl version

With the Tanzu CLI installed, we are ready to set up and use bootstrap machine to deploy Kubernetes clusters to on-premises infrastructure (vSphere) or running on Public Cloud (Amazon EC2 and Microsoft Azure).

That’s all about Installing Tanzu CLI and kubectl, In the next post will discuss about how to deploy management clusters (VMware Tanzu Kubernetes Grid (TKG) Deploy Management Cluster – Part 6). Stay tuned for next post.

Hope this will be informative. Happy learning and happy sharing 🙂 

VMware Tanzu Kubernetes Grid (TKG) Architecture – Part 4

In the last Part VMware Tanzu Kubernetes Grid (TKG) Bootstrap– PART3  discussed about Bootstrapping for TKG cluster. 

In this Part 4 will be discussing about TKG Architecture and then will jump on how to install and initialize the Tanzu command line interface (CLI) on a bootstrap machine.

In nutshell, VMware Tanzu Kubernetes Grid (TKG) provides customers with a consistent Kubernetes environments that is ready for end-user workloads and ecosystem integrations. Customer have option to deploy Tanzu Kubernetes Grid (TKG) across software-defined datacenters (SDDC) On Premises and public cloud environments, including vSphere, Microsoft Azure, and Amazon EC2.

Tanzu Kubernetes Grid Architecture

Tanzu Kubernetes Grid (TKG) delivers a Kubernetes platform that is engineered and supported by VMware, so that you do not have to
build your Kubernetes environment by yourself.

In addition to Kubernetes binaries that are tested, signed, and supported by VMware, Tanzu Kubernetes Grid provides the services such as networking, authentication, ingress control, and logging that a production Kubernetes environment requires. 

Tanzu Kubernetes Grid (TKG) is an implementation of several open-source projects tested and supported by VMware to provide automated provisioning and lifecycle management of Kubernetes clusters.

These include:

  • Declarative API 
  • Networking with Antrea and Calico
  • Ingress Control with Contour
  • Log Forwarding with Fluentbit
  • Harbor Registry
  • User Authentication with Pinniped
  • Load Balancing with VMware NSX Advanced LB (AVI Networks)
  • Backup and Restore with Velero

TKG Architecture design and deployment includes –

  1. Management Cluster 
  2. Tanzu Kubernetes (Workload) Cluster 
  3. Bootstrap Machine running Tanzu CLI

Management Cluster

Management cluster is the first element that you design and deploy when you create a Tanzu Kubernetes Grid instance. The management cluster performs the role of the primary management and operational center for the Tanzu Kubernetes Grid instance. This is
where Cluster API runs to create the Tanzu Kubernetes clusters in which your application workloads run, and where you configure the shared and in-cluster services that the clusters use.

When you deploy a management cluster, networking with Antrea is automatically enabled in the management cluster. The management cluster is responsible for operating the platform and
managing the lifecycle of Tanzu Kubernetes clusters. 

Tanzu Kubernetes (Workload) Clusters
Once management cluster is ready, we deploy Kubernetes clusters that handle your application workloads, that you manage
through the management cluster. Tanzu Kubernetes clusters can run different versions of Kubernetes, depending on the needs of the applications you run. You can manage the entire
lifecycle of Tanzu Kubernetes clusters by using the Tanzu CLI.

Tanzu Kubernetes clusters implement Antrea for pod-to-pod networking by default.

Bootstrap Machine running Tanzu CLI

The bootstrap machine is the host that you use to deploy
management and workload clusters from, and that keeps the Tanzu and Kubernetes configuration files for your deployments. 

That’s all about TKG architecture, will discuss more about Installation of TKG CLI in VMware Tanzu Kubernetes Grid (TKG) Tanzu CLI Installation – Part 5. Stay tuned for next part.

Hope this will be informative. Happy learning and happy sharing 🙂 

VMware Tanzu Kubernetes Grid (TKG) Bootstrap – Part 3

Preview in new tab

In the second series VMware Tanzu Kubernetes Grid (TKG) – PART2. I  covered the basic of VMware Tanzu Portfolio, supported platform for Tanzu whether VMware Cloud  (On-Premises or VCPP Cloud) or Public cloud  (AWS or Azure) and supported  kubernetes versions with latest VMware Tanzu Kubernetes Grid 1.2 release.

Before  deep diving  into Tanzu Kubernetes Grid (TKG) Architecture, Let’s discuss about Bootstrap Environment

The bootstrap environment is typically a VM on which you run the Tanzu Kubernetes Grid CLI or VM from where you plan to deploy the Management or Workload Cluster/s. When you initiate Tanzu Kubernetes Grid instance, it bootstrap on local VM first and then transfer to the cloud infrastructure of your choice whether VMware cloud  (On-Premises or VCPP Cloud) or Public cloud  (AWS or Azure). After bootstrapping the management cluster, This VM can be  used to manage the Tanzu Kubernetes Grid instance.

The TKG CLI is used to initialize cluster, as well as to create, scale, upgrade, and delete Tanzu Kubernetes clusters. Basically Administrator or Developer needs to have TKG CLI to administrator or manage the kubernetes infrastructures or Applications.

When you initialize the TKG cluster, A cluster plan runs within bootstrap VM to provides a set of configurable values for deployment, for example, the number of control plane machines, worker machines, number of vCPUs, amount of memory, and other parameters you want for your TKG cluster. 

TKG Management Cluster

The Management Cluster is the first cluster that you deploy when you create a Tanzu Kubernetes Grid instance. This is Kubernetes cluster that performs the role of the primary management and operational center for the Tanzu Kubernetes Grid instance. This cluster is where Cluster API runs.

TKG Workload Cluster

Once you have deployed Management Cluster, You can initiate the deployment of Tanzu Kubernetes cluster/s from the management cluster by using the Tanzu Kubernetes Grid CLI. These clusters are also called workload clusters. These are clusters where PODs/Containers will run and will host your applications.

A single bootstrap environment can be used to bootstrap as many instances of Tanzu Kubernetes Grid as you want to have for different environments, e.g. Test, dev, Production running in different IaaS Providers – vSphere, AWS or Azure.

That’s all about bootstrap, will discuss more on architecture in VMware Tanzu Kubernetes Grid (TKG) Architecture – Part 4. Stay tuned for next part.

Hope this will be informative. Happy learning and happy sharing 🙂 

VMware Tanzu Kubernetes Grid (TKG) – PART2

In the first series GETTING STARTED WITH VMWARE TANZU PORTFOLIO – PART1. I tried to cover the basic of VMware Tanzu Portfolio, Basic of Cloud Native and what are the products VMware offers to customers under VMware Tanzu portfolio.

Let me recap again before moving to TKG acrchitecture, VMware provide following products for complete Kubernetes life cycle management (LCM):

  • VMware Tanzu Kubernetes Grid, informally known as TKG
  • VMware Tanzu Kubernetes Grid Integrated Edition, informally known as TKGI (Formerly known as Enterprise PKS) – Rebranded after VMware acquisition of Pivotal.
  • VMware Tanzu Kubernetes Grid Service, informally known as TKGS, This is the native Kubernetes in vsphere 7 (vSphere with Tanzu).
  • VMware Tanzu Mission Control, informally known as TMC.

These are complete Tanzu portfolio, which provides broad range of options and covers variety of use-cases for customers to have single platform to run traditional applications and Cloud Native or Modern Applications.

Tanzu Supported Platform

With Lateset release of VMware Tanzu Kubernetes Grid 1.2, customer can run on on-premises software defined data center (SDDC), and public cloud environments, including vSphere, Microsoft Azure, and Amazon EC2.

When we say vSphere it can run within your on-premises (Private Cloud) data center or vSphere base VMware certified cloud runs and managed by VMware Partners. To know more about VMware Certified Cloud or VCPP partners pls refer to VMware Certified Service Provider portal – https://www.vmware.com/partners/service-provider.html

Until VMware Tanzu Kubernetes Grid 1.1, it was only supported on vSphere (either Private cloud or VMware Certified Service Provider Cloud) and AWS. But with the relaese of VMware Tanzu Kubernetes Grid 1.2, now it also support for deployment on Microsoft Azure Public cloud.

With VMware Tanzu Kubernetes Grid 1.2 Release, customer can choose to run these  Kubernetes versions:

  • 1.19.1
  • 1.18.8
  • 1.17.11

For more details what’s new in VMware Tanzu Kubernetes Grid 1.2, Please refer release notes – https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/1.2/rn/VMware-Tanzu-Kubernetes-Grid-12-Release-Notes.html

Will discuss more on architecture in VMware Tanzu Kubernetes Grid (TKG) Bootstrap – Part 3. Stay tuned for next part.

Hope this will be informative. Please feel free to share if you wish to 🙂