2021-09-16 11:36:17 UTC
2.99 GB
v1.21.5
[#000] sha256:18ae6bebe21d13de4442e4cafdf4fbf4e5b0d866afe416f302da087f53f04ae1 - 46.95% (1.4 GB)
[#001] sha256:df018de092998d207eb6d4d5e4ab074425d73b935d5300df298a3f765f1954b3 - 37.04% (1.11 GB)
[#002] sha256:156487fc4774cc892c32566dc8b7c64f51ec0a32957ca947e141c677ee8306fe - 0.0% (1.27 KB)
[#003] sha256:edd6b4120bfe298c259d12072f9dedea8093b1141c0a732491e10ff8839006eb - 0.29% (8.82 MB)
[#004] sha256:7453e5602c1b68d57bf51956eee7b04df0012db10cd9622ac56f4886f1e5c8ae - 0.0% (1.3 KB)
[#005] sha256:94cb10971f9855d7eb8dfadfa290ce4de07016e50950db9c569514231853f618 - 10.83% (331 MB)
[#006] sha256:d5f8573517dcce7a28bcea60329c1fea990e5766311912ac5f7a35ece845edf4 - 0.01% (391 KB)
[#007] sha256:02cd08f49c13bb99c610670e6fdddf72ce9d8495afe04a8b6fcfd8abb5c3e890 - 2.35% (72 MB)
[#008] sha256:761414e7a871e6ee3ff57f21adf1975e7f733cdbe5bc547801edb1650cf362bb - 0.44% (13.5 MB)
[#009] sha256:e00b1260e33f81aeadc4bb7cae70d2f4cad49b0f1855429e437a284facc2f78e - 2.08% (63.6 MB)
[#010] sha256:f0d8bf3ee009d5770c2d3a0de60e8d283d793836c8204afa34e836bab3e7176d - 0.0% (2.76 KB)
[#011] sha256:fbc7f1bf38396d22e0d877718b70a28a588e7b3551ef7e40d8b559391294182f - 0.0% (1.26 KB)
[#012] sha256:ba36af782d66b980b16493c994e96182cab87547f9e7f575011ca5625b955622 - 0.0% (1.27 KB)
[#013] sha256:0519885ce027a8f518f1ddbc9e25d4847c9bc005673f364777d75f915820817f - 0.0% (1.26 KB)
[#014] sha256:59ce4bf44932665c3b088ce2d4311d4984b307ed1d58790b397c99c56297c31e - 0.0% (1.27 KB)
Apply image 20H2-RTM-amd64
2021-09-13 05:28:20 UTCInstall update 20H2-amd64
2021-09-16 11:30:14 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) SHELL [powershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';]
2021-09-16 11:30:41 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-09-16 11:30:42 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) ENV K8S_VERSION=v1.21.5
2021-09-16 11:31:08 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-09-16 11:31:17 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-09-16 11:35:48 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-09-16 11:35:58 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; Move-Item -Path /kubernetes/node/bin/kubectl.exe -Destination /Windows
2021-09-16 11:36:13 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-09-16 11:36:14 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) COPY file:a25ff59f87ce735ca258824b8e027055fcc5a2f55b5e3e0346de6848ff3fa9ab in \usr\bin\
2021-09-16 11:36:14 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.build-date=2021-09-16T11:27:37Z
2021-09-16 11:36:16 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.schema-version=1.0
2021-09-16 11:36:17 UTCpowershell -NoLogo -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; #(nop) LABEL org.label-schema.vcs-ref=ac928c03650da15de81012b067ba3a7ed3f8fbbe
2021-09-16 11:36:17 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.