Now, it is time to have some fun with the newly created Kubernetes cluster. We will create a minimal Deployment with the NodePort Service, exposing the application to users. The application itself is the official ASP.NET Core 3.0 sample packaged as a Docker image—feel free to use any other Windows web application container image, or create your own. We have chosen the official sample in order to make the Deployment as fast as possible so that we can focus on Kubernetes operations.
To deploy the sample application, perform the following steps:
- Create a windows-example.yaml manifest file that contains the Deployment and Service definition. You can download it from the GitHub repository (https://raw.githubusercontent.com/PacktPublishing/Hands-On-Kubernetes-on-Windows/master/Chapter07/09_windows-example/windows-example.yaml)...