fix sealos ssh flags

This commit is contained in:
shenlan 2025-06-26 10:33:48 +08:00
parent 47baf6e018
commit c1330cb814
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ sealos run \
--env '{}' \ --env '{}' \
--cmd "kubeadm init --skip-phases=addon/kube-proxy" --cmd "kubeadm init --skip-phases=addon/kube-proxy"
``` ```
If deploying with a non-root user the command also requires `--ssh-user` and If deploying with a non-root user the command also requires `--user` and
`--ssh-private-key` options pointing to the user's key. `--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. 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 }} \ {{ labring_registry.stdout }}/helm:{{ helm_version }} \
--masters {{ master_ips | join(',') }} \ --masters {{ master_ips | join(',') }} \
--nodes {{ node_ips | join(',') }} \ --nodes {{ node_ips | join(',') }} \
--ssh-user {{ ssh_user }} \ --user {{ ssh_user }} \
--ssh-private-key {{ ssh_private_key }} \ --pk {{ ssh_private_key }} \
--env '{{ sealos_cmd_env }}' \ --env '{{ sealos_cmd_env }}' \
--cmd "{{ kubeadm_init_cmd }}" --cmd "{{ kubeadm_init_cmd }}"
args: args: