2021-12-22 16:24:44 UTC
3.01 GB
v1.21.8
[#000] sha256:18ae6bebe21d13de4442e4cafdf4fbf4e5b0d866afe416f302da087f53f04ae1 - 46.59% (1.4 GB)
[#001] sha256:12bece78596713652b5d56f87c93a853d9be07f42b55d7ef563b1e2a6b0355ab - 37.5% (1.13 GB)
[#002] sha256:b235fea9697a7749b33bf54c866d8b5433a2a40e1ed7e96d42b17e201fafceb8 - 0.0% (1.26 KB)
[#003] sha256:6af3406d83aff0ca06a920e313f0270e2c2cb174bd62d2636841fdae05dbe8d8 - 0.29% (8.83 MB)
[#004] sha256:1f3196b1455af04b3b9bb58b7a6f68c60f33e94d08600bf11687270444bf55f9 - 0.0% (1.31 KB)
[#005] sha256:b4db5869c91c80d4e8c99c19d8575b853cad78c3eb42fb3382d8d38e60d5a82d - 10.76% (331 MB)
[#006] sha256:0e09c7439923c7e382856ae85f1fdf391e5db31c55e7cd98db1eb472907b3b03 - 0.01% (409 KB)
[#007] sha256:54c9872c5aafec536b04f0b6adac177297eb24f71744e6f0830805054cc1a9af - 2.33% (71.9 MB)
[#008] sha256:5c1dc7f53d7680e3509839abcbda12da9dd6b3e506d2eab1fd38bd57b64fcbc9 - 0.44% (13.5 MB)
[#009] sha256:de314e46bf4f43495ca2fe87524a93e0cf01aaf7c665a3d5c9e2fd1157ab45a6 - 2.07% (63.7 MB)
[#010] sha256:cc907353e9873c4c32aa7c6f4cb1637b429ccad2bb1b9673e2d32a7a50061d79 - 0.0% (2.79 KB)
[#011] sha256:23a553925638f8403577c137b2b9a74dd983127b14bb6355b55629d7b90a798c - 0.0% (1.29 KB)
[#012] sha256:deee6d227743d02666d4ed9bb3faa1c092508494169de272a094dcea7150a9cc - 0.0% (1.29 KB)
[#013] sha256:01d0facff6eda6fc216fc0633c4e38121d857a9672e5a834f9cc0d7ff4844716 - 0.0% (1.29 KB)
[#014] sha256:bcacb1392e19f0be40494f9996fe2c82bd34d7e41644b876afcddd183912de6d - 0.0% (1.25 KB)
Apply image 20H2-RTM-amd64
2021-12-10 12:41:30 UTCInstall update 20H2-amd64
2021-12-22 16:18:59 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2021-12-22 16:19:28 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; if (-not (Get-Command Expand-7Zip -ErrorAction Ignore)) { Install-PackageProvider -Name NuGet -Force -Verbose; Install-Module -Name 7Zip4Powershell -Repository PSGallery -Force -Verbose; if(-not $?) { Write-Error "Failed to install package"; Exit 1; } }
2021-12-22 16:19:28 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV K8S_VERSION=v1.21.8
2021-12-22 16:19:55 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $URL = ('https://dl.k8s.io/{0}/kubernetes-node-windows-amd64.tar.gz' -f $env:K8S_VERSION); function Expand-GZip ($inFile, $outFile) { $input = New-Object System.IO.FileStream $inFile, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::Read); $output = New-Object System.IO.FileStream $outFile, ([IO.FileMode]::Create), ([IO.FileAccess]::Write), ([IO.FileShare]::None); $gzipStream = New-Object System.IO.Compression.GzipStream $input, ([IO.Compression.CompressionMode]::Decompress); try { if (!$input -or !$output -or !$gzipStream) { Write-Error "Failed to Unzip the archive"; Exit 1; } $buffer = New-Object byte[](1024); while ($true) { $read = $gzipstream.Read($buffer, 0, 1024); if ($read -le 0 ) { break; } $output.Write($buffer, 0, $read); } } finally { $gzipStream.Close(); $output.Close(); $input.Close(); } }; Write-Host ('Downloading Kubernetes from {0} ...' -f $URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -UseBasicParsing -OutFile c:\kubernetes.tar.gz -Uri $URL; Write-Host 'Expanding ...'; Expand-GZip c:\kubernetes.tar.gz c:\kubernetes.tar; Expand-7Zip c:\kubernetes.tar c:\; Write-Host 'Complete.'
2021-12-22 16:20:04 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; New-Item -ItemType SymbolicLink -Target "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\pwsh.exe"
2021-12-22 16:24:21 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $URL = 'https://github.com/rancher/azure-cli/releases/download/v0.0.2/dist.azure-cli.zip'; Write-Host ('Downloading azure-cli from {0} ...' -f $URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -UseBasicParsing -OutFile c:\azure-cli.zip -Uri $URL; Write-Host 'Expanding ...'; Expand-Archive -Force -Path c:\azure-cli.zip -DestinationPath c:\azure-cli; Remove-Item -Force -Path c:\azure-cli.zip; Write-Host 'Complete.'
2021-12-22 16:24:30 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Move-Item -Path /kubernetes/node/bin/kubectl.exe -Destination /Windows
2021-12-22 16:24:41 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; New-Item -Force -ItemType Directory -Path /etc; New-Item -Force -ItemType Directory -Path /etc/kubernetes; New-Item -Force -ItemType Directory -Path /etc/kubernetes/bin; Move-Item -Path /kubernetes/node/bin/*.exe -Destination /etc/kubernetes/bin/
2021-12-22 16:24:42 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) COPY file:a25ff59f87ce735ca258824b8e027055fcc5a2f55b5e3e0346de6848ff3fa9ab in \usr\bin\
2021-12-22 16:24:42 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.build-date=2021-12-22T16:14:47Z
2021-12-22 16:24:43 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.schema-version=1.0
2021-12-22 16:24:43 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-ref=79ec5bb6902d72cc8e6c54bd7788bbd9345dc6af
2021-12-22 16:24:44 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-url=https://github.com/rancher/hyperkube.git
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.