diff --git a/docs/gpu-k8s-role.md b/docs/gpu-k8s-role.md index d1fd6f0..af90ac0 100644 --- a/docs/gpu-k8s-role.md +++ b/docs/gpu-k8s-role.md @@ -32,8 +32,9 @@ sealos run \ ``` If deploying with a non-root user the command also requires `--user` and `--pk` options pointing to the user's SSH key. The host running Sealos must have -`newuidmap` and `newgidmap` installed (typically provided by the `uidmap` -package) to enable user namespaces. +`newuidmap` and `newgidmap` installed (typically provided by the `uidmap` package) +along with the `fuse-overlayfs` binary to enable user namespaces. + After the cluster is running the role installs the NVIDIA device plugin and runs a test pod to ensure `nvidia-smi` works inside the cluster. diff --git a/playbooks/roles/vhosts/common/files/install-packages.sh b/playbooks/roles/vhosts/common/files/install-packages.sh index d9bee68..09e8f61 100644 --- a/playbooks/roles/vhosts/common/files/install-packages.sh +++ b/playbooks/roles/vhosts/common/files/install-packages.sh @@ -4,4 +4,5 @@ export DEBIAN_FRONTEND=noninteractive curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor > /usr/share/keyrings/hashicorp-archive-keyring.gpg sudo echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list sudo apt-get update -sudo apt-get install -y vault auditd uidmap +sudo apt-get install -y vault auditd uidmap fuse-overlayfs +