This example follows the same pattern as the Python example, a simple Node.js application built with the Express library to walk through the details of how to use Kubernetes. If you are more familiar with JavaScript development, this example may be more meaningful. The sample application is directly from the Express documentation (https://expressjs.com/en/starter/generator.html).
You can get a download a copy of this code from GitHub at https://github.com/kubernetes-for-developers/kfd-nodejs/tree/first_container. Since we will evolve these files, the code referenced here is available at the first_container
tag. If you want to use Git to retrieve these files, you can do so using the following commands:
git clone https://github.com/kubernetes-for-developers/kfd-nodejs cd kfd-nodejs git checkout tags/first_container
Like the Python example, we will start with the Dockerfile. As a reminder, this is what defines what gets built into a container, and how...