Update imperative-object-management-command.md (#5949)

Directly run this command "kubectl create service clusterip my-svc -o yaml --dry-run" will get an error, so added an opinion to get an correct output.
This commit is contained in:
andyyoung01
2017-10-20 00:41:46 +08:00
committed by Steve Perry
parent 9975901f5b
commit ecafd5757b
@@ -140,7 +140,7 @@ You can use `kubectl create --edit` to make arbitrary changes to an object
before it is created. Here's an example:
```sh
kubectl create service clusterip my-svc -o yaml --dry-run > /tmp/srv.yaml
kubectl create service clusterip my-svc --clusterip="None" -o yaml --dry-run > /tmp/srv.yaml
kubectl create --edit -f /tmp/srv.yaml
```