include image-pull-policy=Never for kubectl run (#9100)
* include image-pull-policy=Never for kubectl run * Copyedit
This commit is contained in:
committed by
k8s-ci-robot
parent
e63f47b284
commit
639001434f
@@ -204,10 +204,12 @@ Pod and restarts the Pod's Container if it terminates. Deployments are the
|
|||||||
recommended way to manage the creation and scaling of Pods.
|
recommended way to manage the creation and scaling of Pods.
|
||||||
|
|
||||||
Use the `kubectl run` command to create a Deployment that manages a Pod. The
|
Use the `kubectl run` command to create a Deployment that manages a Pod. The
|
||||||
Pod runs a Container based on your `hello-node:v1` Docker image:
|
Pod runs a Container based on your `hello-node:v1` Docker image. Set the
|
||||||
|
`--image-pull-policy` flag to `Never` to always use the local image, rather than
|
||||||
|
pulling it from your Docker registry (since you haven't pushed it there):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl run hello-node --image=hello-node:v1 --port=8080
|
kubectl run hello-node --image=hello-node:v1 --port=8080 --image-pull-policy=Never
|
||||||
```
|
```
|
||||||
|
|
||||||
View the Deployment:
|
View the Deployment:
|
||||||
|
|||||||
Reference in New Issue
Block a user