JG-mirror/Kubernetes/GPU-Passthrough/readme.md

26 lines
437 B
Markdown
Raw Permalink Normal View History

2023-12-05 22:46:43 +00:00
# Create directory
```
2023-12-05 23:01:24 +00:00
mkdir -p /etc/rancher/rke2
2023-12-05 22:46:43 +00:00
```
# Create File for RKE2 - Config
```
2023-12-05 23:01:24 +00:00
sudo nano /etc/rancher/rke2/config.yaml
```
# Add values
2023-12-05 23:02:14 +00:00
```
2023-12-05 23:01:24 +00:00
token: <ADD-TOKEN>
server: https://<ADD-VIP>:9345
node-label:
- worker=true
- longhorn=true
2023-12-05 22:46:43 +00:00
```
# Install RKE2
```
2023-12-05 23:09:08 +00:00
sudo su
2023-12-06 01:02:07 +00:00
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
2023-12-05 22:46:43 +00:00
```
# Enable RKE2
```
2023-12-05 23:01:24 +00:00
systemctl enable rke2-agent.service
systemctl start rke2-agent.service
2023-12-05 22:46:43 +00:00
```