From ecafd5757b1712ad0019266ab95f5f126e82d545 Mon Sep 17 00:00:00 2001 From: andyyoung01 Date: Fri, 20 Oct 2017 00:41:46 +0800 Subject: [PATCH] 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. --- .../imperative-object-management-command.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/object-management-kubectl/imperative-object-management-command.md b/docs/tutorials/object-management-kubectl/imperative-object-management-command.md index 093b4f2736..6469c206f9 100644 --- a/docs/tutorials/object-management-kubectl/imperative-object-management-command.md +++ b/docs/tutorials/object-management-kubectl/imperative-object-management-command.md @@ -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 ```