VMware Tanzu Community Edition is a full-featured, easy to manage Kubernetes platform that is a freely available, community supported, open source distribution of VMware Tanzu.
The project enables the creation of application platforms through the use of Cluster API to provide declarative deployment and management of Kubernetes clusters.
This post covers a few tips and concepts for using and building with Tanzu Community Edition.
There are three primary types of clusters:
Read more: https://tanzucommunityedition.io/docs/latest/architecture/
There are two ways to deploy a Management Cluster:
tanzu management-cluster create --ui
tanzu management-cluster create --file FILE_PATH
-v
/ --verbose
To delete a Management Cluster:
tanzu management-cluster delete MGMT_CLUSTER_NAME
–force
flagtanzu config server delete MGMT_CLUSTER_NAME
--yes
flag to avoid confirmation promptsTo delete Workload Clusters:
tanzu cluster delete
tanzu cluster delete WORKLOAD_CLUSTER_NAME
--yes
flag to avoid confirmation promptsIf you are about to deploy your TCE clusters on vSphere, there are a few things to check:
Use tanzu package
to discover, configure and manage bundled software, known as packages, within clusters. Packages utilise a Package Repository that is installed into a cluster, this then allows the packages for installation. Some example packages include:
Read more: https://tanzucommunityedition.io/docs/latest/package-management/
Management and Workload Clusters can both be scaled through the Tanzu CLI, with flags for scaling control plan and worker machine counts.
tanzu cluster scale WORKLOAD_CLUSTER_NAME --controlplane-machine-count 5 --worker-machine-count 10 --namespace NAMESPACE
tanzu cluster scale MGMT_CLUSTER_NAME --controlplane-machine-count 5 --worker-machine-count 10 --namespace NAMESPACE
MachineTemplates
: https://cluster-api.sigs.k8s.io/tasks/updating-machine-templates.htmlTanzu Community Edition uses Cluster API for the lifecycle management of Kubernetes clusters. A few definitions to be aware of:
When deploying a Management Cluster on Windows you might get an x509 certificate error: x509: certificate signed by unknown authority
.
You can work around this by updating the Tanzu config file found at %USERPROFILE%.config\tanzu\tkg\config.yaml
Read more: https://tanzucommunityedition.io/docs/latest/faq-cluster-bootstrapping/