Skip to content

patrick0057/cluster-agent-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

cluster-agent-tool.sh

Description

This script will help you retrieve redeployment commands for rancher agents as well as docker run commands to start new agent containers. Depending on the options specified below you can also have the script automatically run these commands for you.

The most common way to use this script is to redeploy your rancher cluster agent and node agents. Below is an example of this usage. The token in the -t option is from generating a "no scope" api key in the web interface and then copying the Bearer Token.

curl -LO https://github.com/patrick0057/cluster-agent-tool/raw/master/cluster-agent-tool.sh
bash cluster-agent-tool.sh -fy -a'save' -t'token-s62kx:9m86wn8twx8xvxdvm79jgmhp9x57mbc5mtsm8hv4qjjtxrlfz4vh22'

The most basic way to use this script is to let it do everything except running the commands automatically for you and prompt you for your Rancher server password as shown below. Please see the help menu for all available options.

curl -LO https://github.com/patrick0057/cluster-agent-tool/raw/master/cluster-agent-tool.sh
bash cluster-agent-tool.sh -y

Download and help instructions:

curl -LO https://github.com/patrick0057/cluster-agent-tool/raw/master/cluster-agent-tool.sh
bash cluster-agent-tool.sh -h

#RancherOS
wget https://github.com/patrick0057/cluster-agent-tool/raw/master/cluster-agent-tool.sh
bash cluster-agent-tool.sh -h

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages