Install Kubernetes with KOps on Azure Government using Windows SubSystem Linux (WLS)
This article will walk through how to install a Kubernetes Cluster on Azure for Government using KOps. Note these steps can be replicated outside of Government Microsoft. There is however a Trick that needs to be used to get this to work with Azure Gov. KOps is currently in alpha state and is only truly set up for Private sector Azure for the State. To make this work then the storage for the state will need to be on the regular azure portal. I'll explain this when we get closer to the storage. Also, KOps will be utilizing the Gossip DNS as well.
Step 1. Install WLS Linux
This article will utilize Windows SubSystem Linux. KOps is mainly a Linux-based program. Azure can be run on both Linux and Windows, but why not use both for this article.
Run the following to install WSL Linux
wsl --install
Step 2. Install Ubuntu
Go to the Microsoft App Store and download Ubuntu 18.0.4 LTS. Click Install to install an app.
Step 3. Switch to WLS 2 as the default version
WLS 2 is the most recent version. Switch to WLS 2 by running:
wsl --set-default-version 2
Note: If you do not already have Windows SubSystem Linux 2, then download it here: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
For more guidance, then go to: https://aka.ms/wsl2kernel
Step 4. List out the Versions and Convert to WLS 2
Not all Apps/Versions come standard to WLS 2. First, pull down all the versions by running:
wsl --list --verbose
Convert a version over by running:
wsl --set-version <distribution name> <versionNumber>