This message was deleted.
# general
a
This message was deleted.
t
What command did you use to join the agent node? In order for the agent to connect, it needs the token to be passed in as described in this comment https://github.com/k3s-io/k3s/issues/1523#issuecomment-602098986
n
I used:
Copy code
curl -sfL <https://get.k3s.io> | K3S_URL=https://$K3S_URL:6443 K3S_TOKEN=$K3S_TOKEN sh -s -
and triple checked that $K3S_URL and $K3S_TOKEN are correctly set with values from the master node
b
pretty sure the value of K3S_TOKEN should just be : K3S_TOKEN=$K3S_TOKEN when referencing an env var...
and of course always a good idea to ensure it resolves to the value you expect using echo $K3S_TOKEN in shell.
n
that's what I have: K3S_TOKEN=$K3S_TOKEN I think I got it, but in hacky way. This is on AWS EC2. I had the SG open up all traffic between the two nodes. However, something was still missing. After I opened all traffic from anywhere, it worked. Which is horrible practice of course, so I need to figure out which protocol/ports was missing specifically
b
ah misread that. cool glad you figured it out 👍
t