Skip to content

Commit a485214

Browse files
lorbicharakhdownie
andauthored
Update articles/storage/container-storage/use-container-storage-with-local-disk.md
Co-authored-by: Ken Downie <[email protected]>
1 parent 0d83406 commit a485214

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

articles/storage/container-storage/use-container-storage-with-local-disk.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,37 @@ Create a pod using [Fio](https://github.com/axboe/fio) (Flexible I/O Tester) for
136136
1. Use your favorite text editor to create a YAML manifest file such as `code acstor-pod.yaml`.
137137

138138
1. Paste in the following code and save the file.
139-
TODO: Add fiopod.yaml definition with ephemeral volume
139+
140+
kind: 'Pod'
141+
apiVersion: 'v1'
142+
metadata:
143+
name: 'fiopod'
144+
spec:
145+
nodeSelector:
146+
acstor.azure.com/io-engine: 'acstor'
147+
containers:
148+
- name: 'fio'
149+
image: 'nixery.dev/shell/fio'
150+
args:
151+
- 'sleep'
152+
- '1000000'
153+
volumeMounts:
154+
- mountPath: '/volume'
155+
name: 'ephemeralvolume'
156+
volumes:
157+
- name: 'ephemeralvolume'
158+
ephemeral:
159+
volumeClaimTemplate:
160+
metadata:
161+
labels:
162+
type: 'my-ephemeral-volume'
163+
spec:
164+
accessModes:
165+
- 'ReadWriteOnce'
166+
storageClassName: 'acstor-ephemeraldisk-nvme'
167+
resources:
168+
requests:
169+
storage: '1Gi'
140170

141171
1. Apply the YAML manifest file to deploy the pod.
142172

0 commit comments

Comments
 (0)