Robert Kloosterhuis, 2 march 2021

Found myself is a situation where I had to restart fluentd on every VM in a 130-node (!) TKGi(PKS) Kubernetes cluster.

Fluentd is managed through Monit, and you can run a command through the Bosh ssh command. In this case: sudo monit restart fluentd

So one of the customer admins that is way more fluent in bash that me, made this.

bosh -e <your bosh env> -d service-instance_e30c8cc7-ada0-4e70-9e72-455682749aaa vms | 
awk '{print "bosh -e <your bosh env> -d service-instance_e30c8cc7-ada0-4e70-9e72-455682749aaa ssh "$1" -c "sudo monit restart fluentd""}' 
> start-fluentd.sh

And then simply check and run start-fluentd.sh

 

 

The original article was posted on: thefluffyadmin.net

Related articles

  • Hybrid Cloud
  • Cloud Native
  • Dev Enablement
  • Platform Engineering
  • Implementation and Adoption
  • Digital Workspace
  • Application Management Services
  • Data Center Modernization
  • Managed Cloud Platform
  • Public Cloud Landing Zones
  • Sovereign Cloud
Visit our knowledge hub
Visit our knowledge hub
ITQ

Let's talk!

Knowledge is key for our existence. This knowledge we use for disruptive innovation and changing organizations. Are you ready for change?

"*" indicates required fields

First name*
Last name*
This field is hidden when viewing the form