mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #14632 from feihujiang/fixMinorErrorsInDockerCliToKubernetes
Auto commit by PR queue bot
This commit is contained in:
commit
2b6fd57220
@ -33,7 +33,7 @@ Documentation for other releases can be found at
|
|||||||
|
|
||||||
# kubectl for docker users
|
# kubectl for docker users
|
||||||
|
|
||||||
In this doc, we introduce the Kubernetes command line to for interacting with the api to docker-cli users. The tool, kubectl, is designed to be familiar to docker-cli users but there are a few necessary differences. Each section of this doc highlights a docker subcommand explains the kubectl equivalent.
|
In this doc, we introduce the Kubernetes command line for interacting with the api to docker-cli users. The tool, kubectl, is designed to be familiar to docker-cli users but there are a few necessary differences. Each section of this doc highlights a docker subcommand explains the kubectl equivalent.
|
||||||
|
|
||||||
**Table of Contents**
|
**Table of Contents**
|
||||||
<!-- BEGIN MUNGE: GENERATED_TOC -->
|
<!-- BEGIN MUNGE: GENERATED_TOC -->
|
||||||
@ -69,9 +69,8 @@ With kubectl:
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
# start the pod running nginx
|
# start the pod running nginx
|
||||||
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=local"
|
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
replicationcontroller "nginx-app" created
|
||||||
nginx-app nginx-app nginx run=nginx-app 1
|
|
||||||
# expose a port through with a service
|
# expose a port through with a service
|
||||||
$ kubectl expose rc nginx-app --port=80 --name=nginx-http
|
$ kubectl expose rc nginx-app --port=80 --name=nginx-http
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user