Merge pull request #118 from svc-design/3v4lm7-codex/移除离线包-kubelet-kubeadm-kubectl

Update GPU offline package
This commit is contained in:
shenlan 2025-06-27 15:11:34 +08:00 committed by GitHub
commit 7b29111ed8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -17,7 +17,9 @@ bash scripts/create-gpu-k8s-offline-package.sh
- Kubernetes 二进制镜像
- Cilium、Helm 等依赖镜像
- NVIDIA 驱动及插件
- NVIDIA 驱动nvidia-driver-535及 nvidia-container-toolkit deb 包
- nerdctl CLIv${NERDCTL_VERSION:-2.1.2}
- 必要的容器镜像,包括 `registry.k8s.io/pause:3.8`
该离线包用于基于 `sealos` 部署 Kubernetes最低推荐版本为 **1.29**,也可以使用更新的 `1.30` 等稳定版本。

View File

@ -9,6 +9,8 @@ NERDCTL_VERSION="${NERDCTL_VERSION:-2.1.2}"
NVIDIA_PLUGIN_VERSION="${NVIDIA_PLUGIN_VERSION:-v0.17.1}"
NVIDIA_DRIVER_VERSION="${NVIDIA_DRIVER_VERSION:-nvidia-driver-535}"
CUDA_SAMPLE_IMAGE="${CUDA_SAMPLE_IMAGE:-nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda12.5.0}"
PAUSE_IMAGE="${PAUSE_IMAGE:-registry.k8s.io/pause:3.8}"
IMAGES=(
"$K8S_VERSION"
@ -16,6 +18,7 @@ IMAGES=(
"$HELM_VERSION"
"nvcr.io/nvidia/k8s-device-plugin:${NVIDIA_PLUGIN_VERSION}"
"$CUDA_SAMPLE_IMAGE"
"$PAUSE_IMAGE"
)
WORKDIR="offline"
@ -25,7 +28,7 @@ mkdir -p "$WORKDIR/images" "$WORKDIR/packages"
APT_PACKAGES=(
curl gnupg2 ca-certificates lsb-release apt-transport-https \
software-properties-common openssh-client openssh-server uidmap \
containerd "$NVIDIA_DRIVER_VERSION" nvidia-container-toolkit
"$NVIDIA_DRIVER_VERSION" nvidia-container-toolkit
)
# Add NVIDIA repository for nvidia-container-toolkit
@ -47,7 +50,7 @@ curl -L -o "$WORKDIR/sealos_5.0.1_linux_amd64.deb" \
https://github.com/labring/sealos/releases/download/v5.0.1/sealos_5.0.1_linux_amd64.deb
# Download nerdctl archive
nerdctl_archive="nerdctl-full-${NERDCTL_VERSION}-linux-amd64.tar.gz"
nerdctl_archive="nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz"
curl -L -o "$WORKDIR/${nerdctl_archive}" \
"https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/${nerdctl_archive}"