Merge pull request #26 from svc-design/codex/修复sealos命令中未知标志错误

Fix Sealos ssh flags
This commit is contained in:
shenlan 2025-06-26 10:33:59 +08:00 committed by GitHub
commit 15d0db0465
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ sealos run \
--env '{}' \
--cmd "kubeadm init --skip-phases=addon/kube-proxy"
```
If deploying with a non-root user the command also requires `--ssh-user` and
`--ssh-private-key` options pointing to the user's key.
If deploying with a non-root user the command also requires `--user` and
`--pk` options pointing to the user's SSH key.
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.

View File

@ -95,8 +95,8 @@
{{ labring_registry.stdout }}/helm:{{ helm_version }} \
--masters {{ master_ips | join(',') }} \
--nodes {{ node_ips | join(',') }} \
--ssh-user {{ ssh_user }} \
--ssh-private-key {{ ssh_private_key }} \
--user {{ ssh_user }} \
--pk {{ ssh_private_key }} \
--env '{{ sealos_cmd_env }}' \
--cmd "{{ kubeadm_init_cmd }}"
args: