- In a terminal, go to the folder that contains the unpacked TKG extension files, such as - tkg-extensions-v1.3.1+vmware.1/extensions. For reference: cd /tkg-extensions-v1.3.1+vmware.1/extensions.
You should see subfolders named Authentication, Ingress, Logging, Monitoring, Registry, and some YAML files. Run all the commands in these procedures from this location.
- Retrieve the admin credentials of the cluster. For reference: tanzu cluster kubeconfig get monitoring-cluster –admin.
- Set the context of kubectl to the cluster. For reference: kubectl config use-context monitoring-cluster-admin@monitoring-cluster.
If you haven't already, install cert-manager on the Tanzu Kubernetes workload cluster by following the procedure in Install Cert Manager on Workload Clusters.
Create a namespace for the Prometheus service on the Tanzu Kubernetes cluster. For reference: kubectl apply -f monitoring/prometheus/namespace-role.yaml.
After this, you should be able to see a confirmation that a Tanzu – system- monitoring has been created. For reference:
When all the pods are ready, the Tanzu K8s cluster is ready for you to deploy the Prometheus extension.
Prepare Prometheus configurations files.