Update longhorn-RKE2.sh
This commit is contained in:
parent
8f8bea877c
commit
c8fa3ac09f
|
@ -77,7 +77,7 @@ for newnode in "${storage[@]}"; do
|
|||
touch /etc/rancher/rke2/config.yaml
|
||||
echo "token: $token" >> /etc/rancher/rke2/config.yaml
|
||||
echo "server: https://$vip:9345" >> /etc/rancher/rke2/config.yaml
|
||||
echo "node-label: longhorn=true" >> /etc/rancher/rke2/config.yaml
|
||||
echo "node-label: longhorn=true" >> /etc/rancher/rke2/config.yaml
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
|
||||
systemctl enable rke2-agent.service
|
||||
systemctl start rke2-agent.service
|
||||
|
|
Loading…
Reference in New Issue