To deploy the sample application, follow these steps:
- Create a windows-example.yaml manifest file that contains a Deployment and Service definition. You can download it from the GitHub repository (https://raw.githubusercontent.com/PacktPublishing/Hands-On-Kubernetes-on-Windows/master/Chapter08/03_windows-example/windows-example.yaml) or directly apply it to the cluster:
apiVersion: apps/v1kind: Deploymentmetadata: name: windows-example labels: app: samplespec: replicas: 3 selector: matchLabels: app: windows-example template: metadata: name: windows-example labels: app: windows-example spec: nodeSelector: "beta.kubernetes.io/os": windows containers: - name: windows-example image: mcr.microsoft.com/dotnet/core/samples:aspnetapp-nanoserver-1809 ...