mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 00:46:18 +00:00
Update longhorn-RKE2.sh
This commit is contained in:
@@ -77,7 +77,7 @@ for newnode in "${storage[@]}"; do
|
|||||||
touch /etc/rancher/rke2/config.yaml
|
touch /etc/rancher/rke2/config.yaml
|
||||||
echo "token: $token" >> /etc/rancher/rke2/config.yaml
|
echo "token: $token" >> /etc/rancher/rke2/config.yaml
|
||||||
echo "server: https://$vip:9345" >> /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 -
|
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
|
||||||
systemctl enable rke2-agent.service
|
systemctl enable rke2-agent.service
|
||||||
systemctl start rke2-agent.service
|
systemctl start rke2-agent.service
|
||||||
|
Reference in New Issue
Block a user