Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

install gpu drivers before extracting hyperkube #4276

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ fi
installContainerRuntime
installNetworkPlugin
installContainerd
if [[ "${GPU_NODE}" = true ]]; then
if $FULL_INSTALL_REQUIRED; then
installGPUDrivers
fi
ensureGPUDrivers
fi
installKubeletAndKubectl
ensureRPC
createKubeManifestDir
Expand Down Expand Up @@ -122,13 +128,6 @@ if [[ ! -z "${MASTER_NODE}" ]]; then
ensurePodSecurityPolicy
fi

if [[ "${GPU_NODE}" = true ]]; then
if $FULL_INSTALL_REQUIRED; then
installGPUDrivers
fi
ensureGPUDrivers
fi

if $FULL_INSTALL_REQUIRED; then
if [[ $OS == $UBUNTU_OS_NAME ]]; then
# mitigation for bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1676635
Expand Down