Skip to content

vBlog.nl

All about technology

Menu
  • Home
  • VMware Cloud Director
  • vSphere
  • Automation
    • PowerCLI
    • PowerShell
    • Terraform
  • NSX
  • Horizon DaaS
  • About Us
Menu

Setting up VMware Tanzu Community Edition on MacOS

Posted on October 22, 2021

In my previous post about the announcements made at VMworld 2021 I talked about the VMware Tanzu Community edition. Today I will show you how to set it up on MacOS

First of all I am using a Mac running MacOS 11.6 and its running on an Intel Mac (I know I also want the new M1 pro/max one).

So lets get started with Setting up VMware Tanzu Community Edition on MacOS shall we?

Table of Contents

    • Before you begin
    • Installing Tanzu Community Edition
  • Getting started with TCE
    • Deploy an app
    • Cleaning up
    • Wrap up

Before you begin

So lets first get the prerequisite in place. I need Homebrew, Docker and kubectl installed on my Mac.

I need to open terminal (or iTerm in my case) and run the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Once done you should see something like this:

Homebrew install

Now that I have Homebrew running I will install docker. Instructions for installing Docker can be found here.

Docker desktop deploy

You might want to check and see the resources assigned to run Docker, this way you will not consume all resources available to you. To change the resource settings open the Docker desktop and go to Settings –> Resources

Next to checking the resources I also checked to see if Docker is running correctly:

docker --version


This command should return something like this:

I have seen some issues out there where people did not get a proper version info. To fix this they had to open the Docker Desktop app and accept the basic setup steps. Maybe I am not running into an issue is that I already openend the Desktop app to set the resources.

And last but not least I will install kubectl:

brew install kubectl 


I can now see if kubectl was installed correctly by running the below command:

kubectl version


This should show something like this:

Installing Tanzu Community Edition

So now that I have all the prerequisites in place I will install Tanzu Community Edition (TCE).

As I installed Homebrew this part is just as simple as installing kubectl. Simply run the following commands.

brew tap vmware-tanzu/tanzu
brew install tanzu-community-edition


Once I finish the setup I am prompted to initialise the required plugins for TCE as you can see in the screenshot below.

So after running the above command I can get started with TCE and deploy my first cluster.

Getting started with TCE

So now that I have TCE running, I will setup a standalone cluster.

Again in terminal (or Iterm2) I run the following command to get the cluster going:

tanzu standalone-cluster create --ui


When I run this command the UI will open up in your browser to complete the setup.

First I select deploy on my local workstation but you could also deploy to vSphere, AWS and Azure.

starting your first cluster

Now all you need to do is provide a cluster name and use the NNF* solution to complete the wizard.

*Next next finish

Now this setup will take some time so get a coffee or thee, walk your dog, hug your wife or just watch and wait.

deploying the cluster

Once finished I can check to see if there is anything running:

First I do a context switch:

kubectl config use-context arjen-admin@arjen

*Note that where it says “arjen” you need to input your cluster name that you picked during the setup

Then I check to see what is running:

kubectl get nodes


I can see that the API node is running:

Deploy an app

So now that I have my cluster running let’s deploy an app to see if all is working as expected. I found this article from VMware that described deploying a demo app called kuard.

kubectl run --restart=Never --image=gcr.io/kuar-demo/kuard-amd64:blue kuard


Next I verify that the pod is running:

kubectl get pods


Which results in:

Now all I need to do is forward the pod container port 8080 to my local 8080 port on my Mac:

kubectl port-forward kuard 8080:8080


And now I can browse to http://localhost:8080 and should see something like this:

kuard app running

So now I have a fully working app on my Tanzu cluster running.

Cleaning up

Since I showed you how to setup TCE I will now show you how to clean up after your self (my wife would be proud)

First lets remove the kuard app:

kubectl delete pod kuard


Secondly, I will clean up the TCE standalone-cluster

tanzu standalone-cluster delete arjen

*Again, replace “arjen” with your cluster name

Once this is done I check to see if everything is cleaned up:

docker ps


Which should result in nothing running in Docker:

If you also want to remove TCE completely, you can run this command:

/usr/local/Cellar/tanzu-community-edition/v0.9.1/libexec/uninstall.sh


Wrap up

So there you have it Setting up VMware Tanzu Community Edition on MacOS. First I installed all the prerequisites, secondly I deployed TCS and thirdly I deployed a demo app.

Finally i cleaned up after my self.

I hope you enjoyed reading this blog and have fun deploying your own TCE environment.

Loading

Share on Social Media
twitter facebook linkedin reddit emailwhatsapptelegram

1 thought on “Setting up VMware Tanzu Community Edition on MacOS”

  1. mahendra says:
    February 23, 2022 at 3:38 am

    I tried to install it on my mac machine.

    I have all the prereqs
    I executed the following command on my command prompt:
    tanzu standalone-cluster create –ui

    and later I tried:
    tanzu management-cluster create –ui

    but I got this error consistently at setting up the control plane:

    Error: unable to set up management cluster: unable to create bootstrap cluster: failed to create kind cluster tkg-kind-c8apjqisahsoattvscpg: failed to init node with kubeadm: command “docker exec –privileged tkg-kind-c8apjqisahsoattvscpg-control-plane kubeadm init –skip-phases=preflight –config=/kind/kubeadm.conf –skip-token-print –v=6” failed with error: exit status 1

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent articles

  • vCloud Director API – Couldn’t connect to cloud server with the provided session id May 24, 2023
  • Horizon DaaS – Maximum sessions exceeded May 9, 2023
  • VMware Cloud on AWS with FSx for NetApp ONTAP December 28, 2022
  • Workspace ONE Access – Change certificate December 22, 2022
  • UI themes for VMware Cloud Director 10.4.1 and later December 16, 2022
  • VMware Tanzu Kubernetes Grid December 15, 2022
  • Workspace One Access – Not logged in to server FQDN. Please invoke Save before Sync December 12, 2022
  • NSX Edge configuration has failed. 1G hugepage support required. December 7, 2022
  • Horizon DaaS – Unable to connect to Desktop November 24, 2022
  • How to: Request and Install a Lets Encrypt Wildcard SSL on VMware Cloud Director 10.4 October 17, 2022

Tags

Automation bootstrapping Container Service Extension Credential Manager Desktone.log ESXi EUC EXi GPU Horizon DaaS Instant-Clone Logging NSX nsx-t PowerCLI PowerShell Putty Raspberry PI SSL Tanzu Terraform update vcd-cli vCenter vCloud vCloud Availability vCloud Director VDI vGPU VMware VMworld vSAN vSphere vVols workspace one Zerto

VMware Cloud Provider Blog

  • In the cloud world, one size doesn’t fit all
    by Vijoo Chacko on June 2, 2023 at 7:25 am

    The size make-up of enterprises in an industry can vary from sector to sector. Take for example, the commercial aviation industry. When did you last fly in a commercial plane that was not a Boeing or an Airbus? This is an industry clearly dominated by two major companies. Whereas the automotive industry is an example … Continued The post In the cloud world, one size doesn’t fit all appeared first on VMware Cloud Provider Blog.

  • Reminder: VMware Cloud Director Availability 4.2 and 4.3 End of General Support Approaching
    by Nikolay Patrikov on May 23, 2023 at 3:17 pm

    Keeping VMware Cloud Director Availability always up-to-date guarantees having all the latest and greatest features available for you and your tenants. But one more reason to consider it now is VMware Cloud Director Availability 4.2.x and 4.3.x will reach End of General Support (EOGS) on June 10, 2023, and will no longer be available for download from the VMware download pages. To ensure you … Continued The post Reminder: VMware Cloud Director Availability 4.2 and 4.3 End of General Support Approaching appeared first on VMware Cloud Provider Blog.

  • VMware Aria Rebranding on VMware Cloud Partner Navigator
    by Sulakshna Shrivastava on May 23, 2023 at 2:06 am

    We recently announced the renaming of the products within our Cloud Management family. These Aria rebranding updates have been implemented on the VMware Cloud Partner Navigator portal The post <strong>VMware Aria Rebranding on VMware Cloud Partner Navigator</strong> appeared first on VMware Cloud Provider Blog.

  • Upgrade vSphere now: vSphere 6.5 and 6.7 end of technical guidance is coming this November
    by Christopher Wong on May 20, 2023 at 3:00 pm

    With the general availability of VMware vSphere 8 Update 1, we would like to remind our Cloud Services Provider partner community that the end of general support for vSphere 6.5 and vSphere 6.7 was October 15, 2022. These versions are now under technical guidance until November 15, 2023. During the technical guidance phase, VMware does … Continued The post Upgrade vSphere now: vSphere 6.5 and 6.7 end of technical guidance is coming this November appeared first on VMware Cloud Provider Blog.

  • VMware NSX Migration for VMware Cloud Director 1.4.2 is now GA
    by Jaikishan Tayal on May 9, 2023 at 2:05 pm

    We’re thrilled to announce the release of the VMware NSX Migration tool for VMware Cloud Director 1.4.2! What is this Tool? If you are unaware of the VMware NSX Migration for VMware Cloud Director Tool, it can help you migrate your environment from NSX for vSphere to NSX T Data Center if you are currently … Continued The post VMware NSX Migration for VMware Cloud Director 1.4.2 is now GA appeared first on VMware Cloud Provider Blog.

©2023 vBlog.nl | Design: Newspaperly WordPress Theme