[zh] Update volumes.md

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
xin.li
2022-04-03 16:33:14 +08:00
parent fe8b412ee1
commit 6b9727e6eb
+2 -2
View File
@@ -438,7 +438,7 @@ metadata:
spec: spec:
containers: containers:
- name: test - name: test
image: busybox image: busybox:1.28
volumeMounts: volumeMounts:
- name: config-vol - name: config-vol
mountPath: /etc/config mountPath: /etc/config
@@ -1836,7 +1836,7 @@ spec:
fieldRef: fieldRef:
apiVersion: v1 apiVersion: v1
fieldPath: metadata.name fieldPath: metadata.name
image: busybox image: busybox:1.28
command: [ "sh", "-c", "while [ true ]; do echo 'Hello'; sleep 10; done | tee -a /logs/hello.txt" ] command: [ "sh", "-c", "while [ true ]; do echo 'Hello'; sleep 10; done | tee -a /logs/hello.txt" ]
volumeMounts: volumeMounts:
- name: workdir1 - name: workdir1