visit
VMware Tanzu Community Edition is a Kubernetes platform specifically designed for use in preproduction and local environments. It is a freely available open-source distribution of VMware Tanzu. It consists of Tanzu CLI and a select set of plugins.
brew install vmware-tanzu/tanzu/tanzu-community-edition
In the output of the brew install
command you will see the location of the configure-tce.sh
file which we will use in the next step:
Run the configure command to install Tanzu plugins and initialize plugin repositories:
/opt/homebrew/Cellar/tanzu-community-edition/v0.11.0/libexec/configure-tce.sh
Before the next command, make sure you have Docker Desktop installed and running on your laptop. Otherwise, you will face an error.
Create a single-node Tanzu unmanaged cluster with the following command:
tanzu unmanaged-cluster create my-cluster-tce
If you have kubectl CLI installed, then it will be automatically configured to access your local Tanzu cluster. We can run some kubectl commands to double-check access to the Kubernetes cluster:
tanzu unmanaged-cluster list
If you have kubectl
CLI installed, then it will be automatically configured to access your local Tanzu cluster. We can run some kubectl commands to double-check access to the cluster:
tanzu package repository list --all-namespaces
tanzu package available list
For now, not all packages are available for Docker-based installation (unmanaged cluster), and even fewer packages support ARM architecture. In the next step, we will install the whereabouts package, which provides the ability to assign IP addresses across the Kubernetes cluster with a CNI IPAM plugin. This package includes the following components:
tanzu package install whereabouts --package-name whereabouts.community.tanzu.vmware.com --version 0.5.0
The whereabouts package is installed! We can check which Tanzu packages installed with the command below:
tanzu package installed list
kubectl apply -f //k8s.io/examples/application/deployment.yaml
To expose the Nginx pod and make it available in the local browser we will use the port-forward command:
kubectl port-forward nginx-deployment-66b6c48dd5-hftmw 80:8080
Open you favorite browser and navigate to the //localhost:8080/
.
kubectl delete deploy nginx-deployment
tanzu package installed delete whereabouts
tanzu unmanaged-cluster delete