Basic operations

To deploy the sample application, follow these steps:

  1. 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 ...

Get Hands-On Kubernetes on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.