From ec95a03160f5ecfe968660d4eb485894f2649739 Mon Sep 17 00:00:00 2001 From: shenlan Date: Thu, 26 Jun 2025 11:20:49 +0800 Subject: [PATCH] Add gpu-k8s dependency on common role --- docs/gpu-k8s-role.md | 2 +- playbooks/demo_gpu_k8s.yml | 1 - playbooks/roles/vhosts/gpu-k8s/meta/main.yml | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 playbooks/roles/vhosts/gpu-k8s/meta/main.yml diff --git a/docs/gpu-k8s-role.md b/docs/gpu-k8s-role.md index af90ac0..c93ba0c 100644 --- a/docs/gpu-k8s-role.md +++ b/docs/gpu-k8s-role.md @@ -32,7 +32,7 @@ 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) +Add the role to your playbook along with the `ssh-trust` role which configures passwordless access from the ops host to the cluster nodes. The `gpu-k8s` role automatically pulls in the `common` role so you do not need to list it separately: along with the `fuse-overlayfs` binary to enable user namespaces. diff --git a/playbooks/demo_gpu_k8s.yml b/playbooks/demo_gpu_k8s.yml index 0868cb2..0cdcf10 100644 --- a/playbooks/demo_gpu_k8s.yml +++ b/playbooks/demo_gpu_k8s.yml @@ -12,4 +12,3 @@ roles: - roles/vhosts/ssh-trust/ - roles/vhosts/gpu-k8s/ - - roles/vhosts/common/ diff --git a/playbooks/roles/vhosts/gpu-k8s/meta/main.yml b/playbooks/roles/vhosts/gpu-k8s/meta/main.yml new file mode 100644 index 0000000..9711b33 --- /dev/null +++ b/playbooks/roles/vhosts/gpu-k8s/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - role: common