https://rancher.com/ logo
#k3s
Title
# k3s
a

adamant-kite-43734

07/23/2022, 2:14 PM
This message was deleted.
b

bored-farmer-36655

07/23/2022, 4:26 PM
@magnificent-egg-26329 Hi I set the variable and use that, for example;
Copy code
curl -sfL <https://get.k3s.io> | INSTALL_K3S_EXEC="--node-ip $NODE_IP --node-external-ip $NODE_IP" \
            K3S_URL="<https://master-node:6443>" \
            K3S_TOKEN_FILE=/etc/rancher/k3s/node-token-seed K3S_NODE_NAME=$NODE_NAME sh -
m

magnificent-egg-26329

07/24/2022, 1:15 AM
Thanks!
I am going to set --node-ip to some private lan ip, and the node-external-ip to some public ip. I’d like to know 1. Is the setting only applicable to agent? From the docs, they are put under the agent section. 2. What is the use and difference of node-ip and node-external-ip.
b

bored-farmer-36655

07/24/2022, 1:51 AM
@magnificent-egg-26329 Hi, it's needed if you have multiple interfaces, sounds like in your case you do... No, it can be applicable to all (if you want), I use for example
Copy code
server -- cluster-init --node-ip $NODE_IP --node-external-ip $NODE_IP
👍 1
7 Views