rancher / rancher

Complete container management platform
http://rancher.com
Apache License 2.0
23.51k stars 2.98k forks source link

Rancher private registry scripts do not properly tag images for RKE2 Windows node provisioning #41533

Open aiyengar2 opened 1 year ago

aiyengar2 commented 1 year ago

Rancher Server Setup

Information about the Cluster

aiyengar2 commented 1 year ago

More context in https://github.com/rancher/rancher/issues/39609

aiyengar2 commented 1 year ago

On more investigation, it appears that the reason for this issue has to do with improperly following the docs listed in https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/other-installation-methods/air-gapped-helm-cli-install/publish-images#3-prepare-the-docker-daemon for setting up the private registry.

Specifically, when setting up a private registry for Windows and Linux, the docs assume that you are running the save and load scripts both on a Linux host and on a Windows host. Namely, this is because while the Windows host is responsible for pushing Windows images only, the Linux host is responsible for pushing both Linux images and Linux + Windows manifests (where the Windows manifests are only created if the Linux load script has a specific command line argument passed into it: --windows-image-list ./rancher-windows-images.txt.

If you follow that step, the private registry should be set up as expected.