Skip to content

SupportTools/rke2-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rke2-up

Go Binary

Coming soon.

Bash script

Install

sudo curl -o /usr/local/bin/rke2-up https://raw.githubusercontent.com/SupportTools/rke2-up/main/scripts/rke2-up.sh
sudo chmod +x /usr/local/bin/rke2-up

or

wget -O rke2-up https://raw.githubusercontent.com/SupportTools/rke2-up/main/scripts/rke2-up.sh
chmod +x rke2-up
sudo mv rke2-up /usr/local/bin/

Help

rke2-up --help
Usage: rke2-up [-p PrivateIP|auto] [-P PublicIP|auto|disable] [-m master|worker|all] [-v v1.21.6+rke2r1] [-s 10.132.191.210] [-t K1075c2da4946626e73...]

Options break down

-p PrivateIP: Private IP address of the node.
    auto: auto-detect the private IP address of the node.
    PrivateIP: use the specified IP address. (Exameple: 10.132.191.210)
-P PublicIP: Public IP address of the node.
    auto: auto-detect the public IP address of the node.
    disable: disable public IP address.
    PublicIP: use the specified IP address. (Exameple: 1.2.3.4)
-l enable|disable: Locks down the cluster using the CIS Profile.
    enable: enable cluster hardening.
    disable: disable cluster hardening.
-m master|worker|all: Type of node.
    master: Joins node as master node.
    worker: Joins node as worker node.
    all: Joins node as master node and worker node.
-v v1.21.6+rke2r1: Version of RKE.
    RKE2 Version: Use the specified version of RKE2. (Exameple: v1.21.6+rke2r1)
-s Bootstrap IP: IP address of the bootstrap node.
    Bootstrap IP: Use the specified IP address of the bootstrap node. (Exameple: 10.132.191.210) Note: This should be the private IP address of the bootstrap node.
-t Token: Token of the bootstrap node.
    Token: Use the specified token of the bootstrap node. (Exameple: K1075c2da4946626e73...)

Creating a RKE2 cluster

Create cluster with all nodes being master and worker

Run the following command on the first node in the new cluster to bootstrap the node.

rke2-up -m all -l disable -v v1.21.6+rke2r1

At the end of this command, you should see an output like this. Please save this as you will need it to join the other nodes to the cluster.

::Bootstrap info::
Run the following command on the rest of the all nodes in the cluster. NOTE: You should join nodes one at a time.
rke2-up -m all -l disable -h -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe

Run the following command on the rest of the nodes in the cluster. NOTE: You should join master nodes one at a time.

rke2-up -m all -l disable -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe

Create cluster with separate master and worker nodes

Create master nodes

Run the following command on the first master node in the new cluster to bootstrap the node.

rke2-up -m master -l disable -v v1.21.6+rke2r1

At the end of this command, you should see an output like this. Please save this as you will need it to join the other nodes to the cluster.

::Bootstrap info::
Run the following command on the rest of the master nodes in the cluster. NOTE: You should join master nodes one at a time.
rke2-up -m master -l disable -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe
Run the following command on each worker nodes. Note: You can run this command on multiple nodes at the same time.
rke2-up -m worker -l disable -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe

Run the following command on the rest of the master nodes in the cluster. NOTE: You should join master nodes one at a time.

rke2-up -m master -l disable -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe

Create worker nodes

Run the following command on each worker nodes. Note: You can run this command on multiple nodes at the same time.

rke2-up -m worker -l disable -v v1.21.6+rke2r1 -s 10.132.191.210 -t MyAFakeKey::server:YouShouldReplaceMe

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published