if you are using linux/macos:
curl -fsSL https://raw.githubusercontent.com/neodejack/rr/main/upgrade.sh | bashjust make sure ~/.local/bin is in your PATH.
- download the binary executable from github release page
- unzip and cp the binary executable into your PATH. for example, you can copy it into
$HOME/.local/bin - try running
rr, mac's security feature should block you from doing this. you need to open up settings -> privacy & security and manually allow this binary to run
i dunno. there is a windows binary tho. but i literally don't know how anything works on windows, you gotta figure it out
- create a rancher api key and fill them in using the below command
rancher api key can be obtained from https://<rancher_host>/dashboard/account
rr login- you can now try do
rr kf --help
some useful commands
# check local kubeconfig first, if the local kubeconfig is not valid, then
# download kubeconfig for us_west cluster, save it locally, and output path of
# saved kubeconfig to stdout
rr kf us_west
# check local kubeconfig first, if the local kubeconfig is not valid, then
# download kubeconfig for us_west cluster, save it locally, and output shell
# command to use the kubeconfig in the current shell to stdout
rr kf us_west --sh
# download kubeconfig for us_west cluster, save it locally (overwriting the
# local kubeconfig whether it's still valid or not), and output shell command to
# use the kubeconfig in the current shell to stdout
rr kf us_west --sh --new
- i like to set up this thing in my .zshrc
## put this somewhere in your .zshrc/.bashrc
hi() {
eval "$(rr kf --sh "$1")"
}then i can just call hi us_west to connect to us_west k8s cluster in my current shell