Tanzu Community Edition First Look


Userlevel 7
Badge +22

Hi Everyone. I installed TCE yesterday on my Ubuntu laptop and decided to create a quick and dirty post to show the steps. Overall I was pretty impressed with TCE. They seemed to have made things smooth and relatively easy to get started with. This will without a doubt fill a big hole as there really was nowhere to practice Tanzu unlike Openshift with Minishift, Kubeadm with Minikube and Rancher with Rancher Desktop.

 

First we need to download the tarball: https://tanzucommunityedition.io/download/

Untar it 

tar zxvf tce-linux-amd64-v0.9.1

 

Then CD into the new directory:

 

 

Once here we need to run the install.sh script:

 

This should run to completion and echo out “Installation Complete”

 

 

Now we should be able to run the UI 

tanzu management-cluster create --ui

(note: you could just continue running the install from the command line, checkout the documentation: https://tanzucommunityedition.io/docs/latest/

 

 

You should now see the following pop up in your browser:

 

 

As you can see it gives you a choice of what platform to install on. We are going to use docker which will leverage KIND (if you are interested in KIND here is a link https://kind.sigs.k8s.io/docs/user/quick-start/ 

You can just choose the defaults if you want to get up and running quick:

 

Once through all the choices you will be able to press “Deploy Management Cluster”

 

The deployment will start:

 

It also conveniently offers you the CLI command as well:

 

This step takes a while but eventually completes:

 

 

Back in the CLI lets try our first Tanzu command:

tanzu management-cluster get

 

In order to use our beloved kubectl command we need to get the kubeconfig file for this cluster and switch contexts.. (notice the cluster name 🙂

tanzu management-cluster kubeconfig get notoriouskggcluster --admin 
kubectl config use-context notoriouskggcluster-admin@notoriouskggcluster

Now we are back in familiar kubectl territory:

 

 

According to the documentation we can install additional packages. I am really interested in storage, i.e. some kind of local path for persistent volume claims and dynamic provisioning.

tanzu package available list

But this shows nothing.. ah.. we need to add a repo :)

tanzu package repository add tce-repo --url projects.registry.vmware.com/tce/main:0.9.1 --namespace tanzu-package-repo-global

This will take a bit of time, just be patient. Eventually you will see this:

 

There is my local storage package. Lets get this installed asap:

 

tanzu package install local-path-storage --package-name=local-path-storage.community.tanzu.vmware.com --version=0.0.20

Keep in mind for version doing a “lazy latest” did not work, you had to specify exactly which version number.

All good:

It automatically creates a storageclass and makes it default:

 

 

The provisioner is rancher.io/local-path which we have seen before down on the Ponderosa (inside joke, from an old North American Cowboy TV show Bonanza).

Tanzu has a concept of management clusters and workload clusters so after this the next step would be to create one of those where you can deploy workloads (although nothing will stop you from creating deployments in the management cluster). 

tanzu cluster create workloadcluster --plan dev

However, I will leave the next steps for next time. Before we go lets checkout all the pods on the system:

 

 

One further note, there is no volumesnapshot support so you will have to use Kasten generic backup support which will leverage sidecar containers: https://docs.kasten.io/latest/install/generic.html?highlight=generic

just remember to add this to your helm install command: 

--set injectKanisterSidecar.enabled=true

More on that later.

 

My next steps will be to do some backups and also figure out the best method to expose applications.

 


12 comments

Userlevel 7
Badge +20

Great article @Geoff Burke will have to follow this and get things set up. 😁

Userlevel 7
Badge +6

:point_right: https://tanzucommunityedition.io/download/

TANZU COMMUNITY EDITION - a freely available, community-supported, open source distribution of VMware Tanzu that you can install and configure in minutes on your local workstation or your favorite cloud :heart_eyes:

 

 

 

 

Userlevel 7
Badge +6

Great Great Post Geoff, Rock It...

Userlevel 7
Badge +13

Thanks for your great post, Geoff! :thumbsup_tone3:

Do I get this right, TCE is basically Tanzu but without vSphere?

 

Userlevel 7
Badge +13

Thanks @eprieto ! Didn’t know TCE exists at all up to now.

Userlevel 7
Badge +20

Thanks for your great post, Geoff! :thumbsup_tone3:

Do I get this right, TCE is basically Tanzu but without vSphere?

 

Yep

Userlevel 7
Badge +22

Thanks for your great post, Geoff! :thumbsup_tone3:

Do I get this right, TCE is basically Tanzu but without vSphere?

 

Pretty much.. Tanzu in Vsphere has a bunch of flavors I am finding out. 

Tanzu is really just Kubeadm kubernetes with an abstraction layer on top and some custom addons (very simple description). The main thing here is that for the Devop or sys admin TCE allows you to leverage all the commands and get used to “those extras” without having a full blown bona fide Tanzu production setup. Very early still and we need to look at this more I believe until we can draw solid conclusion but so far so good. All normal kubernetes commands work there and as one of the presenters at VMworld just said now, you really (understatement) need to know some kubernetes to really leverage Tanzu 🙂. So the emphasis is learn kubernetes while also learning the extras of Tanzu.

Userlevel 7
Badge +9

This is the 3rd time I am seeing this post. I will definitely test this our in my lab environment. 

Userlevel 7
Badge +6

Great post Geoff, I have also put a video demo covering similar steps on this one -

 

Userlevel 7
Badge +22

By the way I asked at one of the sessions yesterday at VMworld about an LB package, they said most likely Metallb was coming. Right now I did not see one. For ingress they use Contour which leverages envoy (yet another new learning path.. it never ends 🙂 )

Userlevel 7
Badge +4

Great post, @Geoff Burke 

Userlevel 7
Badge +20

Will definitely be watching this one.

Comment