-
Notifications
You must be signed in to change notification settings - Fork 46
/
azurefile-inline-volume-subpath-mounts-stat.yaml
65 lines (64 loc) · 1.69 KB
/
azurefile-inline-volume-subpath-mounts-stat.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: deployment-azurefile
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
name: deployment-azurefile
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: deployment-azurefile
image: mcr.microsoft.com/oss/nginx/nginx:1.19.5
command:
- "/bin/bash"
- "-c"
- set -euo pipefail; while true; do for i in {1..5}; do time stat -f /mnt/test$i & done; wait; done
volumeMounts:
- name: test1
mountPath: /mnt/test1
- name: test2
mountPath: /mnt/test2
- name: test3
mountPath: /mnt/test3
- name: test4
mountPath: /mnt/test4
- name: test5
mountPath: /mnt/test5
volumes:
- name: test1
azureFile:
secretName: azure-storage-account-andyaccount-secret
shareName: abc/test1
- name: test2
azureFile:
secretName: azure-storage-account-andyaccount-secret
shareName: abc/test2
- name: test3
azureFile:
secretName: azure-storage-account-andyaccount-secret
shareName: abc/test3
- name: test4
azureFile:
secretName: azure-storage-account-andyaccount-secret
shareName: abc/test4
- name: test5
azureFile:
secretName: azure-storage-account-andyaccount-secret
shareName: abc/test5
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate