File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ create-example-deployment:
146
146
kubectl apply -f deploy/example/storageclass-blobfuse.yaml
147
147
kubectl apply -f deploy/example/deployment.yaml
148
148
kubectl apply -f deploy/example/statefulset.yaml
149
+ kubectl apply -f deploy/example/statefulset-nonroot.yaml
149
150
150
151
.PHONY : delete-metrics-svc
151
152
delete-metrics-svc :
Original file line number Diff line number Diff line change 23
23
- name : statefulset-blob
24
24
image : andyzhangx/ubuntu1604:nonroot
25
25
command :
26
- - " /bin/sh "
26
+ - " /bin/bash "
27
27
- " -c"
28
- - while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
28
+ - set -euo pipefail; while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
29
29
volumeMounts :
30
30
- name : persistent-storage
31
31
mountPath : /mnt/blob
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ spec:
17
17
" kubernetes.io/os " : linux
18
18
containers :
19
19
- name : statefulset-blob
20
- image : mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
20
+ image : mcr.microsoft.com/oss/nginx/nginx:1.19.5
21
21
command :
22
- - " /bin/sh "
22
+ - " /bin/bash "
23
23
- " -c"
24
- - while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
24
+ - set -euo pipefail; while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
25
25
volumeMounts :
26
26
- name : persistent-storage
27
27
mountPath : /mnt/blob
You can’t perform that action at this time.
0 commit comments