2021-10-25 17:17:05 UTC
2.99 GB
v1.22.2
[#000] sha256:18ae6bebe21d13de4442e4cafdf4fbf4e5b0d866afe416f302da087f53f04ae1 - 46.91% (1.4 GB)
[#001] sha256:b6fefc95bf4a567290e69413f970ab250c2799cc8fdb01f701decff56639e7fa - 37.03% (1.11 GB)
[#002] sha256:30e735d8ef6d02d27591d2543af86b9d27158f2e9cdf12f54ae066d0c5394c8e - 0.0% (1.36 KB)
[#003] sha256:7d14347bc862a0184dff476b2b07e34cd7838cd3948fc43ce9c86a93b6936e64 - 0.29% (8.83 MB)
[#004] sha256:4723b5580946a7bcdaeed428c6acdb42d279c4872f5e3804557babbeb9f735bc - 0.0% (1.28 KB)
[#005] sha256:e8479f90acea5df1f445d394b7372f13f127e4364ea32ace5ac4c37751b20021 - 10.87% (332 MB)
[#006] sha256:40f135b898ea539277d3db97b87c9f43e7caa77e348fec70f023693861f50e95 - 0.01% (369 KB)
[#007] sha256:4d980e4ae51039b4d6afa4cb2b91df67f710ba9d6056cd31d33aff18507c5d6e - 2.35% (72 MB)
[#008] sha256:dd48da01481f54bb1b2fbe7098ffce127d30bd2655efe7317637e5c96fc739a2 - 0.44% (13.6 MB)
[#009] sha256:fd7be1c973096529fc13d0c9c1e45b0c0d12741bfe72926358cb5f093a20572a - 2.1% (64.2 MB)
[#010] sha256:84966c27ef79e6b727e46dcc3ace81f2c8623abba3604b755204b5201dcfbba7 - 0.0% (2.75 KB)
[#011] sha256:8a21070bbf0d0cd2c12ace78d67b9e3d13021af8d183512d16579e964225c659 - 0.0% (1.26 KB)
[#012] sha256:a72b87d154f501080b9404b5f274e3f29bf0d695175b02ae0459b41a2513776e - 0.0% (1.26 KB)
[#013] sha256:83a78ad069972c53d6676419c833f599a00105611a99c42400ceb37f88c55239 - 0.0% (1.26 KB)
[#014] sha256:70d226c1c631ffa3291be69f99d886bc018aebf5433dc350e52828f946ed5821 - 0.0% (1.28 KB)
Apply image 20H2-RTM-amd64
2021-10-06 06:59:29 UTCInstall update 20H2-amd64
2021-10-25 17:10:27 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2021-10-25 17:11:10 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-10-25 17:11:11 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV K8S_VERSION=v1.22.2
2021-10-25 17:11:39 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-10-25 17:11:49 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-10-25 17:16:38 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-10-25 17:16:50 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Move-Item -Path /kubernetes/node/bin/kubectl.exe -Destination /Windows
2021-10-25 17:17:01 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-10-25 17:17:02 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) COPY file:a25ff59f87ce735ca258824b8e027055fcc5a2f55b5e3e0346de6848ff3fa9ab in \usr\bin\
2021-10-25 17:17:02 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.build-date=2021-10-25T17:05:48Z
2021-10-25 17:17:03 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.schema-version=1.0
2021-10-25 17:17:04 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-ref=4599e354acc8445e453174099372fc4ca02f64dc
2021-10-25 17:17:05 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.