From 2872def62b0a3065fa1d86c58ce3afeef0cd57cc Mon Sep 17 00:00:00 2001 From: linzhaoming Date: Sat, 23 Sep 2017 16:22:06 +0800 Subject: [PATCH] Fix the doc example --- cn/docs/tutorials/stateful-application/basic-stateful-set.md | 2 +- docs/tutorials/stateful-application/basic-stateful-set.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cn/docs/tutorials/stateful-application/basic-stateful-set.md b/cn/docs/tutorials/stateful-application/basic-stateful-set.md index 3c45196561..7290344cf3 100644 --- a/cn/docs/tutorials/stateful-application/basic-stateful-set.md +++ b/cn/docs/tutorials/stateful-application/basic-stateful-set.md @@ -532,7 +532,7 @@ web-2 gcr.io/google_containers/nginx-slim:0.7 Patch `web` StatefulSet 来执行 `RollingUpdate` 更新策略。 ```shell -kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"RollingUpdate"}}} +kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"RollingUpdate"}}}' statefulset "web" patched ``` diff --git a/docs/tutorials/stateful-application/basic-stateful-set.md b/docs/tutorials/stateful-application/basic-stateful-set.md index 2dc65eabe6..c5287cc5aa 100644 --- a/docs/tutorials/stateful-application/basic-stateful-set.md +++ b/docs/tutorials/stateful-application/basic-stateful-set.md @@ -545,7 +545,7 @@ reverse ordinal order, while respecting the StatefulSet guarantees. Patch the `web` StatefulSet to apply the `RollingUpdate` update strategy. ```shell -kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"RollingUpdate"}}} +kubectl patch statefulset web -p '{"spec":{"updateStrategy":{"type":"RollingUpdate"}}}' statefulset "web" patched ```