Installing and configuring Kubernetes prerequisites

First, ensure that Windows Server 2019 is up to date. In order to do that, use the Hyper-V terminal connection and perform the following steps:

If you do not want to use a third-party module for managing updates, you can use the sconfig command. Currently, these operations cannot be easily performed via SSH as they require a graphical user interface (GUI) interaction.
  1. Open a PowerShell session, using the powershell command.
  2. Install the PSWindowsUpdate custom module for managing Windows updates, as follows:
Install-Module -Name PSWindowsUpdate
  1. Trigger Windows updates by running the following code (this process may take a bit of time to complete):
Get-WUInstall -AcceptAll -Install

The ...

Get Hands-On Kubernetes on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.