Using a Windows Pause Image for an Air-Gapped Environment
Page last updated:
This topic describes configuring a private registry and a Windows pause image for an air-gapped environment for Windows worker-based Kubernetes clusters in Tanzu Kubernetes Grid Integrated Edition (TKGI).
To deploy a Windows pod, Kubelet deploys a Windows container image fetched from a Docker registry.
Microsoft restricts distribution of Windows container base images and the fetched Windows container image is typically pulled from the Microsoft Docker registry. This registry is inaccessible from within an air-gapped environment.
To deploy Windows pods in an air-gapped environment you must have a Windows container image in a private Docker registry:
- Prepare Your Private Docker Registry
- Prepare a Windows Pause Image for an Air-Gapped Environment
- Configure Tanzu Kubernetes Grid Integrated Edition to Use the Windows Pause Image
Your private Docker registry must meet the following requirements:
- The registry must be accessible from your Tanzu Kubernetes Grid Integrated Edition environment.
- The registry must be configured to support Microsoft Windows images.
For an example of a Windows-supporting registry, see Pushing Images
in the VMware Harbor documentation.
Follow the instructions for the Docker registry you chose to configure an accessible Windows image-supporting registry.
To prepare a Windows pause image for an air-gapped environment, perform the following:
- Create an accessible Windows Server 2019 machine in your environment.
- Install Docker on this Windows Server 2019 machine.
- Configure the machine’s Docker daemon to allow non-redistributable artifacts to be
pushed to your private registry. For information about configuring your Docker daemon,
see Allow push of nondistributable artifacts in the Docker documentation.
- Open a command line on the Windows machine.
To download a Windows container image from the Microsoft Docker registry, run the following command:
docker pull mcr.microsoft.com/k8s/core/pause:1.3.0
To tag the Windows container image, run the following command:
docker tag mcr.microsoft.com/k8s/core/pause:1.3.0 REGISTRY-ROOT/windows/pause:1.3.0
REGISTRY-ROOTis your private registry’s URI.
To upload the Windows container image to your accessible private registry, run the following command:
docker push PAUSE-IMAGE-URI
PAUSE-IMAGE-URIis the URI to the Windows pause image in your private registry. Your pause image URI should follow the pattern:
To configure Tanzu Kubernetes Grid Integrated Edition to fetch your accessible Windows container image when deploying Windows pods, perform the following:
- Open the Tanzu Kubernetes Grid Integrated Edition tile.
- Click the Windows worker Plan that you want to configure to use your accessible private registry.
Modify the Kubelet customization - Windows pause image location property to be your pause image URI.
Please send any feedback you have to firstname.lastname@example.org.