Skip to content

Commit

Permalink
Change domain for better CN conectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Issacwww committed Sep 28, 2024
1 parent bcea9d1 commit 19cff1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion templates/al2/provisioners/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ done
# Verify that the aws-iam-authenticator is at last v0.5.9 or greater. Otherwise, nodes will be
# unable to join clusters due to upgrading to client.authentication.k8s.io/v1beta1
iam_auth_version=$(sudo /usr/bin/aws-iam-authenticator version | jq -r .Version)
iam_auth_version="${iam_auth_version#*-}"
if vercmp "$iam_auth_version" lt "v0.5.9"; then
# To resolve this issue, you need to update the aws-iam-authenticator binary. Using binaries distributed by EKS
# with kubernetes_build_date 2022-10-31 or later include v0.5.10 or greater.
Expand Down
9 changes: 8 additions & 1 deletion templates/al2023/provisioners/install-nvidia-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ echo "Installing NVIDIA ${NVIDIA_DRIVER_MAJOR_VERSION} drivers..."
################################################################################
### Add repository #############################################################
################################################################################
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
# Determine the domain based on the region
if [ "$AWS_REGION" == "cn-*" ]; then
DOMAIN="nvidia.cn"
else
DOMAIN="nvidia.com"
fi

sudo dnf config-manager --add-repo https://developer.download.${DOMAIN}/compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
sudo dnf config-manager --add-repo https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo

sudo sed -i 's/gpgcheck=0/gpgcheck=1/g' /etc/yum.repos.d/nvidia-container-toolkit.repo /etc/yum.repos.d/cuda-amzn2023.repo
Expand Down
2 changes: 1 addition & 1 deletion templates/al2023/variables-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"kms_key_id": "",
"launch_block_device_mappings_volume_size": "20",
"nodeadm_build_image": "public.ecr.aws/eks-distro-build-tooling/golang:1.23",
"nvidia_driver_major_version": "555",
"nvidia_driver_major_version": "560",
"remote_folder": "/tmp",
"runc_version": "*",
"security_group_id": "",
Expand Down

0 comments on commit 19cff1b

Please sign in to comment.