apiVersion: v1
kind: Pod
metadata:
  name: windows-example-pod
spec:
  nodeSelector:
    kubernetes.io/os: windows
  containers:
    - name: test-container
      image: mcr.microsoft.com/powershell:nanoserver-1809
      command:
        - pwsh
      args:
        - -command
        - mkdir /mnt/volume1/test && echo 'hello' > /mnt/volume1/test/index
      volumeMounts:
        - name: test-volume
          mountPath: /mnt/volume1
  restartPolicy: Never
  volumes:
    - name: test-volume
      persistentVolumeClaim:
        claimName: windows-example-pvc
