What is VMware Tanzu Kubernetes Grid
Standalone VMware Tanzu Kubernetes Grid provides organizations with a consistent, upstream-compatible, regional Kubernetes substrate across software-defined datacenters (SDDC) and public cloud environments, that is ready for end-user workloads and ecosystem integrations
With vRealize Log Insight Cloud we support number of Log Sources and you will see instructions for VMware Tanzu Kubernetes Grid as well
Once the logs are flowing you can create a Dashboard to visualize your TKG environment like the below sample dashboard
Pre-requisites
Working Setup of Tanzu Kubernetes Cluster following the documentation or using the fling (Demo Appliance for Tanzu Kubernetes Grid) created by our friend William Lam
I have used Demo Appliance for Tanzu Kubernetes Grid in my lab
Procedure
The following section includes steps for running vRealize Log Insight Cloud Fluentd plugin as a Daemon set
Step 1
Generate vRealize Log Insight Cloud API Key from here
Step2
Copy following files from the shared repo https://github.com/munishpalmakhija/tkg-demos/tree/master/vrealize/loginsight-cloud
- fluent.conf
- vrlic.yaml
For the next release of the Demo Appliance, these files will be automatically be downloaded under the vRealize folder since it has been merged in the official repo of the Demo Appliance
Step 3
Update the fluent.conf file with the given configuration. You only need to update <Access Key> : generated in Step 1
Step 4
Create a ConfigMap in Kubernetes for fluent.conf
kubectl -n kube-system create configmap lint-fluent-config --from-file=fluent.conf
Step 5
Apply the creation/changes of new daemon set configuration to the cluster
kubectl apply -f vrlic.yaml
You can verify that pod is successfully running
kubectl get pods --all-namespaces | grep fluentd
If everything is successful you can search for logs using “environment contains tanzu_k8s_grid”
Getting Started with vRealize LogInsight Cloud
For a free trial, you can click here or reach out to your account team
To learn more about vRealize Log Insight Cloud please visit here