update
This commit is contained in:
parent
c33a8dc101
commit
e32775d66e
|
@ -0,0 +1,22 @@
|
|||
# Create directory
|
||||
```
|
||||
mkdir -p /etc/rancher/rke2
|
||||
```
|
||||
# Create File for RKE2 - Config
|
||||
```
|
||||
touch /etc/rancher/rke2/config.yaml
|
||||
echo "token: <ADD-TOKEN>" >> /etc/rancher/rke2/config.yaml
|
||||
echo "server: https://<ADD-VIP>:9345" >> /etc/rancher/rke2/config.yaml
|
||||
echo "node-label:" >> /etc/rancher/rke2/config.yaml
|
||||
echo " - worker=true" >> /etc/rancher/rke2/config.yaml
|
||||
echo " - longhorn=true" >> /etc/rancher/rke2/config.yaml
|
||||
```
|
||||
# Install RKE2
|
||||
```
|
||||
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
|
||||
```
|
||||
# Enable RKE2
|
||||
```
|
||||
systemctl enable rke2-agent.service
|
||||
systemctl start rke2-agent.service
|
||||
```
|
Loading…
Reference in New Issue