Merge branch 'main' into codex/根据节点ip选择镜像地址

This commit is contained in:
shenlan 2025-06-25 22:04:13 +08:00 committed by GitHub
commit f627d17de9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,9 @@ The role performs four main tasks:
4. **Verify GPU access** by deploying the official NVIDIA device plugin and running a small CUDA workload.
When `sealos_version` is set to `latest` (the default), the role automatically
fetches the most recent stable release from GitHub.
fetches the most recent stable release from GitHub. The Kubernetes image tag is
controlled separately via `kubernetes_version`, which defaults to `v1.25.16` but
can be overridden to any compatible release.
The following command is used to create the cluster (example with one master and one worker):
@ -20,7 +22,7 @@ The following command is used to create the cluster (example with one master and
```bash
REGISTRY=$(scripts/get_labring_registry.sh)
sealos run \
${REGISTRY}/kubernetes:<latest> \
${REGISTRY}/kubernetes:<kubernetes_version> \
${REGISTRY}/cilium:<cilium_version> \
${REGISTRY}/helm:<helm_version> \
--masters 172.16.11.120 \

View File

@ -1,5 +1,6 @@
# Default variables for gpu-k8s role
sealos_version: latest
kubernetes_version: v1.25.16
cilium_version: v1.13.4
helm_version: v3.9.4
master_ips: [] # List of up to three master node IPs

View File

@ -48,7 +48,7 @@
- name: Run sealos to create Kubernetes cluster
shell: |
sealos run \
{{ labring_registry.stdout }}/kubernetes:{{ sealos_version }} \
{{ labring_registry.stdout }}/kubernetes:{{ kubernetes_version }} \
{{ labring_registry.stdout }}/cilium:{{ cilium_version }} \
{{ labring_registry.stdout }}/helm:{{ helm_version }} \
--masters {{ master_ips | join(',') }} \