Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the variable? #27

Open
Roguito opened this issue Oct 15, 2023 · 2 comments
Open

Where is the variable? #27

Roguito opened this issue Oct 15, 2023 · 2 comments

Comments

@Roguito
Copy link

Roguito commented Oct 15, 2023

I assume there was a step that was supposed to set the token env variable before these instructions.

2) Setup environment variable for the token
Use the variable below to install an agent (worker) node

curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -

@Roguito
Copy link
Author

Roguito commented Oct 15, 2023

if it was meant to be used as an environment variable as part of an automated bash script. I suggest:
token=$(cat /var/lib/rancher/rke2/server/node-token)

@malcolmlewis
Copy link

The token needs to be copied over to the node the install is on, that variable is only on the initial machine. Or just create your own to use which is what I do and place in /etc/rancher/rke2 directory...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants