This topic describes how to use an orchestration template to create a web application that includes a Deployment and a Service, and run the application on a Windows node.
Prerequisites
A Windows node is required. For more information, see Create and manage a Windows node pool.
Step 1: Deploy the sample application
Follow these steps to deploy a sample ASP.NET application to a Windows node in your cluster. A Service automatically creates a Server Load Balancer instance to expose port 80 of the application, making the web application accessible from the internet.
Log on to the ACK console. In the left navigation pane, click Clusters.
On the Clusters page, click the name of your cluster. In the left navigation pane, click .
-
Click Create from YAML. Set Sample Template to Custom, enter the YAML content, and click Submit.
After you submit the YAML, you are redirected to the Deployments page where you can see the new web application.
Step 2: Access the application
On the Clusters page, click the name of your cluster. In the left navigation pane, click .
-
Click the name of the target Service (web-windows). In the Basic Information section, click the External IP to access the web application.
This opens the aspnetapp sample application page. The page title is Welcome to .NET. The table below the title shows the runtime environment: .NET version is .NET 9.0.8, Operating system is Microsoft Windows 10.0.20348, Processor architecture is X64, and Containerized is true. This indicates that the application is running correctly in a Windows container.