https://rancher.com/ logo
Title
m

magnificent-egg-26329

07/23/2022, 2:14 PM
Regarding agent networking, possible to specify the value
--node-ip value, -i value
When I am installing with the https://get.k3s.io/ shell script?
b

bored-farmer-36655

07/23/2022, 4:26 PM
@magnificent-egg-26329 Hi I set the variable and use that, for example;
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
server -- cluster-init --node-ip $NODE_IP --node-external-ip $NODE_IP
👍 1