The simple and easy-to-use program is designed to watch user activity and possible orphan clusters for Cloud Providers:
- GCP (work in progress)
This application is created with a view to using it as the tmux status. To fulfill this criterion the procedure of getting resources from the gardener is separated and is in the second service which serves the UNIX socket that is used by the first one. This architecture allows not to block the main tmux process during calling the right gardener endpoint.
Visit the releases page to download one of the pre-built binaries for your platform.
Use Homebrew to install
brew install pPrecel/tap/cloudagent
brew tap pPrecel/tap brew install cloudagent
Extend configuration (see also) in the
brew services start cloudagent
Make use of it
After installing, configuring, and starting the service process, cloudagent would fetch info from given clouds after ~60sec from start. To check that program is working correctly use:
NOTE: I really recommend you to use
--helpfor all commands to familiarize with all functionalities. Logs from running service are stored in
/tmp/cloudagent/cloudagent.stdoutand you can use for example
catprogram to read all of them.
Integration with tmux
To add this application to tmux put the line below in the
set -ag status-right ' #(cloudagent state --createdBy <OWNER_NAME> -o text) '
Any help and contribution would be welcome. If you want to help with creating feature requests, logging bugs, or/and working on any existing ticket, go to the issues tab. If you decided to look into code, this document would be helpful.