Update cli commands (#15268)
* Update cli commands * Small fixes * Update snippet
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
62656313f1
commit
4a1203a941
@@ -39,9 +39,7 @@ content_template: templates/task
|
|||||||
kubectl create -f https://k8s.io/docs/tasks/inject-data-application/commands.yaml
|
kubectl create -f https://k8s.io/docs/tasks/inject-data-application/commands.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--
|
|
||||||
2. List the running Pods:
|
2. List the running Pods:
|
||||||
-->
|
|
||||||
|
|
||||||
获取正在运行的 pod
|
获取正在运行的 pod
|
||||||
|
|
||||||
@@ -59,7 +57,7 @@ content_template: templates/task
|
|||||||
|
|
||||||
日志中显示了HOSTNAME 与KUBERNETES_PORT 这两个环境变量的值:
|
日志中显示了HOSTNAME 与KUBERNETES_PORT 这两个环境变量的值:
|
||||||
|
|
||||||
```shell
|
```
|
||||||
command-demo
|
command-demo
|
||||||
tcp://10.3.240.1:443
|
tcp://10.3.240.1:443
|
||||||
```
|
```
|
||||||
@@ -69,7 +67,7 @@ content_template: templates/task
|
|||||||
在上面的示例中,我们直接将一串字符作为命令的入参。除此之外,我们还可以
|
在上面的示例中,我们直接将一串字符作为命令的入参。除此之外,我们还可以
|
||||||
将环境变量作为命令的入参。
|
将环境变量作为命令的入参。
|
||||||
|
|
||||||
```shell
|
```yaml
|
||||||
env:
|
env:
|
||||||
- name: MESSAGE
|
- name: MESSAGE
|
||||||
value: "hello world"
|
value: "hello world"
|
||||||
|
|||||||
Reference in New Issue
Block a user