apiVersion: apps/v1 kind: Deployment metadata: name: windows-example labels: app: sample spec: 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 resources: limits: cpu: 1 memory: 800M requests: cpu: .1 memory: 300M ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: windows-example spec: type: NodePort ports: - protocol: TCP port: 80 nodePort: 31001 targetPort: 80 selector: app: windows-example