Tanzu Kubernetes cluster is created by invoking a Tanzu Kubernetes Grid service declarative API. Once the cluster is created, you can manage and deploy workloads to it by running the Kubectl command.
To create TKG clusters:
kubectl-vsphere.exe login --insecure-skip-tls-verify --vsphere-username
kubectl get
kubectl get sc
Kubect config get-contexts
apiVersion: run.tanzu.vmware.com/v1 kind: TanzuKubernetesCluster metadata:
name: tkg-cluster-01 namespace: test-ns-1
spec:
distribution: version: v1.18.5
topology: controlPlane:
count: 1
Kubectl apply -f <cluster-name>.yaml
Kubectl cluster-info
Kubectl get nodes
Kubectl get ns
Kubectl api-resources