Categories
WSL

WSL 2 VPN Routing Fix

In my last article on WSL 2 VPN issues, I detailed the most common networking problems that occur when using WSL 2 and a VPN at the same time. I have since created a Windows service that will automatically correct any conflicting routes that exist between WSL and your VPN.

If you would simply like to use the service, you can download wslroutesvc.exe and run .\wslroutesvc.exe install from PowerShell as an administrator.

If you are interested in how this service functions, read on.

Categories
Docker Kubernetes

Traefik 2 and Kubernetes: Basic TLS Routing

Traefik is a powerful edge router that makes it easy to direct HTTP/S, TCP, and UDP traffic throughout your infrastructure. It works with a variety of backends and performs automatic configuration discovery to decide what should be routed where.

This tutorial provides detailed instructions on how to deploy Traefik, add an SSL secret into Kubernetes, and route secured traffic to your Kubernetes service.

Traefik 2 Dashboard showing a TLS-secured route
Categories
WSL

WSL 2 and VPN Woes

Windows Subsystem for Linux (WSL) provides huge benefits to developers. It opens a whole world of Linux applications, improves your Docker performance, and lets you bash to your heart’s content. The Premier Developer blog at Microsoft has a glowing post about WSL with more of the details if you are so inclined.

Unfortunately, all of this functionality does not come without its troubles. Since switching to WSL 2, I have been unable to initiate any network connections within WSL when connected to my VPN. This is not a rare problem, but none of the existing issues on the WSL GitHub page worked for me.

This post details all of the solutions I tried and the one that finally worked.

Categories
Docker Kubernetes

Kubernetes Metrics Server on Docker Desktop

After setting up Docker Desktop and Kubernetes on WSL, I noticed that I was unable to gather cluster node CPU and memory information using kubectl top node. A quick look at the Kubernetes documentation indicated that I needed to install the Metrics Server. However, most current articles addressing how to install the Kubernetes Metrics Server for Docker Desktop are a bit out of date.

Here are the steps I followed to get the latest release of the Kubernetes Metrics Server running with the Docker Desktop Kubernetes release.