Working with Kubernetes in dev containers
Now that we have a container image for our web app that we can build from inside our dev container, we will look at the steps needed to be able to run our app in Kubernetes. This section is fairly advanced (especially if you're not familiar with Kubernetes), so feel free to skip ahead to the Tips for working with dev containers section and come back to this later.
Let's start by looking at how to set up the dev container for working with Kubernetes.
Options for Kubernetes with dev containers
There are many options for working with Kubernetes in WSL. The common options are outlined in Chapter 7, Working with Containers in WSL, in the Setting up Kubernetes in WSL section. In that chapter, we used the Kubernetes integration in Docker Desktop, which is a low-friction way to set up Kubernetes. This approach can also be used with dev containers with a couple of steps (assuming you have enabled the Docker Desktop integration):
...