1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| core@node1:~$ sudo hostnamectl set-hostname node1 core@node1:~$ sudo reboot core@node1:~$ sudo yum install -y curl core@node1:~$ curl -sfL https://get.k3s.io | K3S_TOKEN=EXXK_SECRET sh -s - server --cluster-init core@node1:~$ sudo reboot core@node1:~$ sudo kubectl get nodes NAME STATUS ROLES AGE VERSION node1 Ready control-plane,etcd,master 119s v1.30.6+k3s1
core@node1:~$ sudo rpm-ostree install nfs-utils
core@node2:~$ sudo hostnamectl set-hostname node2 core@node2:~$ sudo reboot core@node2:~$ sudo yum install -y curl core@node2:~$ curl -sfL https://get.k3s.io | K3S_TOKEN=EXXK_SECRET sh -s - server --server https://172.16.80.163:6443 core@node1:~$ sudo reboot core@node2:~$ sudo kubectl get nodes NAME STATUS ROLES AGE VERSION node1 Ready control-plane,etcd,master 17m v1.30.6+k3s1 node2 Ready control-plane,etcd,master 34s v1.30.6+k3s1
core@node2:~$ sudo rpm-ostree install nfs-utils
exxk@exxk:~$ curl -sfL https://get.k3s.io | K3S_TOKEN=EXXK_SECRET sh -s - server --server https://172.16.80.163:6443 exxk@exxk:~$ sudo reboot exxk@exxk:~$ sudo kubectl get nodes [sudo] password for exxk: NAME STATUS ROLES AGE VERSION exxk Ready control-plane,etcd,master 3m4s v1.30.6+k3s1 node1 Ready control-plane,etcd,master 25m v1.30.6+k3s1 node2 Ready control-plane,etcd,master 8m19s v1.30.6+k3s1
exxk@exxk:~$ sudo apt install nfs-common
exxk@exxk:~$ sudo add-apt-repository ppa:graphics-drivers/ppa exxk@exxk:~$ sudo apt update exxk@exxk:~$ sudo apt install -y nvidia-driver-560 --no-install-recommends exxk@exxk:~$ sudo reboot exxk@exxk:~$ nvidia-smi
exxk@exxk:~$ sudo nvidia-ctk runtime configure --runtime=containerd exxk@exxk:~$ sudo reboot
exxk@exxk:~$ sudo sudo ctr run --rm --gpus 0 docker.io/nvidia/cuda:11.8.0-base-ubuntu20.04 bash nvidia-smi Fri Dec 13 10:05:41 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 3050 ... Off | 00000000:00:10.0 Off | N/A | | N/A 45C P8 3W / 60W | 2MiB / 4096MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | No running processes found | +-----------------------------------------------------------------------------------------+ exit
nfs:~# apk add nfs-utils nfs:~# mkdir /nfsdata nfs:/nfs# vi /etc/exports
/nfsdata 172.16.80.0/24(rw,nohide,no_subtree_check,no_root_squash) nfs:~# rc-update add nfs nfs:~# rc-service nfs start
|