File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
articles/storage/container-storage Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -137,36 +137,35 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
137
137
138
138
1 . Paste in the following code and save the file.
139
139
``` yml
140
- kind : ' Pod'
141
- apiVersion : ' v1 '
140
+ kind : Pod
141
+ apiVersion : v1
142
142
metadata :
143
- name : ' fiopod'
143
+ name : fiopod
144
144
spec :
145
145
nodeSelector :
146
- acstor.azure.com/io-engine : ' acstor'
146
+ acstor.azure.com/io-engine : acstor
147
147
containers :
148
- - name : ' fio'
149
- image : ' nixery.dev/shell/fio'
148
+ - name : fio
149
+ image : nixery.dev/shell/fio
150
150
args :
151
- - ' sleep'
152
- - ' 1000000'
151
+ - sleep
152
+ - " 1000000"
153
153
volumeMounts :
154
- - mountPath : ' /volume'
155
- name : ' ephemeralvolume'
154
+ - mountPath : " /volume"
155
+ name : ephemeralvolume
156
156
volumes :
157
- - name : ' ephemeralvolume'
157
+ - name : ephemeralvolume
158
158
ephemeral :
159
159
volumeClaimTemplate :
160
160
metadata :
161
161
labels :
162
- type : ' my-ephemeral-volume'
162
+ type : my-ephemeral-volume
163
163
spec :
164
- accessModes :
165
- - ' ReadWriteOnce'
166
- storageClassName : ' acstor-ephemeraldisk-nvme'
164
+ accessModes : [ "ReadWriteOnce" ]
165
+ storageClassName : " acstor-ephemeraldisk-nvme" # replace with the name of your storage class if different
167
166
resources :
168
167
requests :
169
- storage : ' 1Gi'
168
+ storage : 1Gi
170
169
` ` `
171
170
172
171
1. Apply the YAML manifest file to deploy the pod.
You can’t perform that action at this time.
0 commit comments