-
Notifications
You must be signed in to change notification settings - Fork 138
/
deployment.yaml
49 lines (49 loc) · 1.02 KB
/
deployment.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
43
44
45
46
47
48
49
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-smb
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: smb
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: busybox-smb
namespace: default
labels:
app: busybox
spec:
replicas: 1
template:
metadata:
name: busybox
labels:
app: busybox
spec:
nodeSelector:
"kubernetes.io/os": windows
containers:
- name: busybox
image: mcr.microsoft.com/windows/servercore:ltsc2022
command:
- "powershell.exe"
- "-Command"
- "while (1) { Add-Content -Encoding Ascii C:\\mnt\\smb\\data.txt $(Get-Date -Format u); sleep 1 }"
volumeMounts:
- name: smb
mountPath: "/mnt/smb"
subPath: subPath
volumes:
- name: smb
persistentVolumeClaim:
claimName: pvc-smb
selector:
matchLabels:
app: busybox