Steps to check the fluentd version on the worker nodes in Tanzu Kubernetes Grid Integrated
search cancel

Steps to check the fluentd version on the worker nodes in Tanzu Kubernetes Grid Integrated

book

Article ID: 421002

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition

Issue/Introduction

This article outlines the steps to find the fluentd version running on the TKGi nodes

Resolution

1) ssh to the node using the below command:

bosh -d service-instance_uuid ssh worker/id 

2) Export the ruby path:

export PATH="/var/vcap/data/packages/ruby-*/*/bin:$PATH"
ruby --version

3) To check the fluentd version you also have to set few additional env variables as below:

FLUENTD_PID=$(pgrep -f "fluentd -c")
sudo cat /proc/$FLUENTD_PID/environ | tr '\0' '\n'
export GEM_HOME=/var/vcap/packages/vrli-fluentd/gem_home/ruby/3.3.0
export BUNDLE_GEMFILE=/var/vcap/packages/vrli-fluentd/Gemfile
/var/vcap/packages/vrli-fluentd/bin/fluentd --version