Update docker-cli-to-kubectl.md (#12288)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
10588e474b
commit
1612f95d1d
@@ -45,7 +45,6 @@ CONTAINER ID IMAGE COMMAND CREATED
|
|||||||
55c103fa1296 nginx "nginx -g 'daemon of…" 9 seconds ago Up 9 seconds 0.0.0.0:80->80/tcp nginx-app
|
55c103fa1296 nginx "nginx -g 'daemon of…" 9 seconds ago Up 9 seconds 0.0.0.0:80->80/tcp nginx-app
|
||||||
```
|
```
|
||||||
|
|
||||||
kubectl:
|
|
||||||
<!--
|
<!--
|
||||||
```shell
|
```shell
|
||||||
# start the pod running nginx
|
# start the pod running nginx
|
||||||
@@ -54,6 +53,8 @@ deployment "nginx-app" created
|
|||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
kubectl:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# 启动 Pod 运行 nginx
|
# 启动 Pod 运行 nginx
|
||||||
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||||
|
|||||||
Reference in New Issue
Block a user