Skip to content

Commit bb71c25

Browse files
authored
Change domain for better CN conectivity (#1980)
1 parent d968984 commit bb71c25

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

templates/al2023/provisioners/install-nvidia-driver.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ echo "Installing NVIDIA ${NVIDIA_DRIVER_MAJOR_VERSION} drivers..."
1212
################################################################################
1313
### Add repository #############################################################
1414
################################################################################
15-
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
15+
# Determine the domain based on the region
16+
if [[ $AWS_REGION == cn-* ]]; then
17+
DOMAIN="nvidia.cn"
18+
else
19+
DOMAIN="nvidia.com"
20+
fi
21+
22+
sudo dnf config-manager --add-repo https://developer.download.${DOMAIN}/compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
1623
sudo dnf config-manager --add-repo https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo
1724

1825
sudo sed -i 's/gpgcheck=0/gpgcheck=1/g' /etc/yum.repos.d/nvidia-container-toolkit.repo /etc/yum.repos.d/cuda-amzn2023.repo

templates/al2023/variables-default.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"kms_key_id": "",
2121
"launch_block_device_mappings_volume_size": "20",
2222
"nodeadm_build_image": "public.ecr.aws/eks-distro-build-tooling/golang:1.23",
23-
"nvidia_driver_major_version": "555",
23+
"nvidia_driver_major_version": "560",
2424
"remote_folder": "/tmp",
2525
"runc_version": "*",
2626
"security_group_id": "",

0 commit comments

Comments
 (0)