-
Notifications
You must be signed in to change notification settings - Fork 145
/
statefulset.yaml
42 lines (42 loc) · 1.07 KB
/
statefulset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: statefulset-azurefile-win
labels:
app: busybox
spec:
serviceName: statefulset-azurefile-win
podManagementPolicy: Parallel # default is OrderedReady
replicas: 1
template:
metadata:
labels:
app: busybox
spec:
nodeSelector:
"kubernetes.io/os": windows
containers:
- name: statefulset-azurefile
image: mcr.microsoft.com/windows/servercore:ltsc2022
command:
- "powershell.exe"
- "-Command"
- "while (1) { Add-Content -Encoding Ascii C:\\mnt\\azurefile\\data.txt $(Get-Date -Format u); sleep 1 }"
volumeMounts:
- name: persistent-storage
mountPath: /mnt/azurefile
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: busybox
volumeClaimTemplates:
- metadata:
name: persistent-storage
spec:
storageClassName: azurefile-csi
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 100Gi