Update longhorn-RKE2.sh

This commit is contained in:
tehNooB 2023-11-02 13:28:59 +00:00 committed by GitHub
parent 8f8bea877c
commit c8fa3ac09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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