--- apiVersion: apps/v1 kind: StatefulSet metadata: name: statefulset-azuredisk-win labels: app: busybox spec: serviceName: statefulset-azuredisk-win replicas: 1 template: metadata: labels: app: busybox spec: nodeSelector: "kubernetes.io/os": windows containers: - name: busybox-azuredisk image: mcr.microsoft.com/windows/servercore:ltsc2022 command: - "powershell.exe" - "-Command" - "while (1) { Add-Content -Encoding Ascii C:\\mnt\\azuredisk\\data.txt $(Get-Date -Format u); sleep 1 }" volumeMounts: - name: persistent-storage mountPath: /mnt/azuredisk updateStrategy: type: RollingUpdate selector: matchLabels: app: busybox volumeClaimTemplates: - metadata: name: persistent-storage spec: storageClassName: managed-csi accessModes: ["ReadWriteOnce"] resources: requests: storage: 100Gi