-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
…ontainerd decoupling using K8s ci binaries and different versions of containerd for ci windows templates
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- op: add | ||
path: /spec/template/spec/files/- | ||
value: | ||
content: | | ||
$ErrorActionPreference = 'Stop' | ||
$$CONTAINERD_URL="${WINDOWS_CONTAINERD_URL}" | ||
if($$CONTAINERD_URL -ne ""){ | ||
# Kubelet service depends on contianerd service so make a best effort attempt to stop it | ||
Stop-Service kubelet -Force -ErrorAction SilentlyContinue | ||
Stop-Service containerd -Force | ||
echo "downloading containerd: $$CONTAINERD_URL" | ||
curl.exe --retry 10 --retry-delay 5 -L "$$CONTAINERD_URL" --output "c:/k/containerd.tar.gz" | ||
tar.exe -zxvf c:/k/containerd.tar.gz -C "c:/Program Files/containerd" --strip-components 1 | ||
Start-Service containerd | ||
} | ||
containerd.exe --version | ||
containerd-shim-runhcs-v1.exe --version | ||
path: C:/replace-containerd.ps1 | ||
permissions: "0744" | ||
- op: add | ||
path: /spec/template/spec/preKubeadmCommands/- | ||
value: | ||
powershell C:/replace-containerd.ps1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.