include image-pull-policy=Never for kubectl run (#9100)
* include image-pull-policy=Never for kubectl run * Copyeditpull/9067/head
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.
|
||||
|
||||
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
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue