csi-driver-smb/deploy/example/windows/statefulset.yaml

43 lines
982 B
YAML

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