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

Commit

Permalink
install gpu drivers before extracting hyperkube (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Nov 21, 2018
1 parent 53ec5aa commit dab5943
Showing 1 changed file with 6 additions and 7 deletions.
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

0 comments on commit dab5943

Please sign in to comment.