GCE Windows: Copy the CNI binaries from the right folder
A previous commit updated the containerd version used on Windows nodes from 1.5.4 to 1.6.2. However, the folder structure of the containerd releases changed since then from: cni/$binary.exe to: cni/bin/$binary.exe Because of this, the Windows nodes do not have the necessary CNI binaries needed to setup the pod networks.
This commit is contained in:
@@ -1368,7 +1368,7 @@ function Install_Containerd {
|
|||||||
-Algorithm SHA256
|
-Algorithm SHA256
|
||||||
|
|
||||||
tar xzvf $tmp_dir\containerd.tar.gz -C $tmp_dir
|
tar xzvf $tmp_dir\containerd.tar.gz -C $tmp_dir
|
||||||
Move-Item -Force $tmp_dir\cni\*.exe "${env:CNI_DIR}\"
|
Move-Item -Force $tmp_dir\cni\bin\*.exe "${env:CNI_DIR}\"
|
||||||
Move-Item -Force $tmp_dir\*.exe "${env:NODE_DIR}\"
|
Move-Item -Force $tmp_dir\*.exe "${env:NODE_DIR}\"
|
||||||
Remove-Item -Force -Recurse $tmp_dir
|
Remove-Item -Force -Recurse $tmp_dir
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user