Thursday, June 18, 2020

Configure Log forwarding from VMware Tanzu Kubernetes Cluster to vRealize Log Insight Cloud

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


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


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 


  • 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  : 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

Wednesday, June 10, 2020

Powershell for vRealize-Automation-Cloud aka PowervRACloud is on GitHub Now

Powershell for vRealize-Automation-Cloud is a PowerShell module that abstracts the VMware vRealize Automation Cloud APIs to a set of easily used PowerShell functions. This tool provides a comprehensive command-line environment for managing your VMware vRealize Automation Cloud environment. It is a.k.a PowervRACloud

I started this as a fling and now I have decided to Open Source on Github. Any Contributions are welcome

# Pre-requisites 

You need to have following pre-requisites

1. vRealize Automation Cloud API Token
2. PowerShellVersion = '6.0'

# Manual Download

It is a simple two-file module stored under the module directory.

  1. PowervRACloud.psd1
  2. PowervRACloud.psm1

To install it, download above 2 files to a PowerShell enabled machine and navigate to the folder and execute the following command

Import-Module .\PowervRACloud.psd1

# Getting Started

Quick Examples on how to get started

| Example-1  |
| ------------- |
| Connect-vRA-Cloud -APIToken "APIToken" |
| Example-2  |
| ------------- |
| Get-vRA-CloudAccounts|

# Documentation

You can download the documentation file which has instructions for every command

# Contribution

You can use the following methods or you can reach out to me via twitter

  1. Bugs and Issues - Please use the issues register with details of the problem.
  2. Feature Requests - Please use the issues register with details of what's required.
  3. For Code contribution (bug fixes, or feature request), please request fork of the Project, create a feature branch, then submit a pull request.

# License 

Powershell for vRealize-Automation-Cloud is licensed under GPL v2.