Skip to content

Commit 03617d5

Browse files
authored
docs: update README.md
发现docs中的command有更新,但是README.md的没有
1 parent 4a88aaa commit 03617d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,11 @@ spec:
14621462
containers:
14631463
- name: echo
14641464
image: busybox
1465-
command: [for i in 9 8 7 6 5 4 3 2 1 ; do echo $i ; done]
1465+
command:
1466+
- "/bin/sh"
1467+
args:
1468+
- "-c"
1469+
- "for i in 9 8 7 6 5 4 3 2 1 ; do echo $i ; done"
14661470
```
14671471

14681472
通过下面的命令创建 job,可以通过 `kubectl get pods -w` 来观察 job 创建 pod 的过程和结果。最后可以通过 `logs` 命令查看日志。

0 commit comments

Comments
 (0)