Tanzu Kubernetes Grid retains logs for management cluster and Tanzu Kubernetes cluster deployment and operation.
To monitor and troubleshoot management cluster deployments, review:
The log file listed in the terminal output Logs of the command execution can also be found at…
The log from your cloud provider module for Cluster API. Retrieve the most recent one as follows:
tanzu management-cluster create
output for Bootstrapper created. Kubeconfig: and copy the kubeconfig
file path listed. The file is in ~/.kube-tkg/tmp/
.kubectl logs deployment.apps/capv-controller-manager -n capv-system manager --kubeconfig </path/to/kubeconfig>
kubectl logs deployment.apps/capa-controller-manager -n capa-system manager --kubeconfig </path/to/kubeconfig>
kubectl logs deployment.apps/capz-controller-manager -n capz-system manager --kubeconfig </path/to/kubeconfig>
After running tanzu cluster create
, you can monitor the deployment process in the Cluster API logs on the management cluster.
To access these logs, follow the steps below:
Set kubeconfig
to your management cluster. For example:
kubectl config use-context my-management-cluster-admin@my-management-cluster
Run the following:
capi
logs:
kubectl logs deployments/capi-controller-manager -n capi-system manager
IaaS-specific logs:
kubectl logs deployments/capv-controller-manager -n capv-system manager
kubectl logs deployments/capa-controller-manager -n capa-system manager
kubectl logs deployments/capz-controller-manager -n capz-system manager