ojob ojob.io/kube/getK3S agent=true master=true token=K173832c8dd5a175bf2123d840ad491850199cbd19309ab3b37827047cdd6319b04::server:faddf0a734d338cd66d4ab19fb4bed73 server=https://1.2.3.4:6443 secret=secret
Gets and installs K3S
Name | Description |
---|---|
agent | If agent=true it will install a K3S agent node (requires a token to be provided) |
master | If master=true it will install a K3S master node (requires a secret to be provided). If no "server" is provided it will assume it's the first cluster master node. |
token | If agent=true a token must be provided (can be obtained from k3s servers on /var/lib/rancher/k3s/server/node-token) |
server | When adding extra nodes or master nodes you need to provide an url to one of the master nodes (e.g. https://1.2.3.4:6443). |
secret | If master=true this will determine the secret used for master to connect between them. If none is provided for the first cluster master node, one will be generated. |