From bcdc7f861676fad91d83a75a56b943b89bd45884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 17 May 2021 18:09:00 +0200 Subject: [PATCH] docs: fix patch command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The JSON was invalid. Signed-off-by: Sébastien Han --- Documentation/ceph-disaster-recovery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ceph-disaster-recovery.md b/Documentation/ceph-disaster-recovery.md index a4f0ff0fd..4913f741f 100644 --- a/Documentation/ceph-disaster-recovery.md +++ b/Documentation/ceph-disaster-recovery.md @@ -97,7 +97,7 @@ ceph-mon \ Patch the `rook-ceph-mon-b` Deployment to stop this mon working without deleting the mon pod: ```console -kubectl -n rook-ceph patch deployment rook-ceph-mon-b -p '{"op":"remove", "path":"/spec/template/spec/containers/0/livenessProbe"}' +kubectl -n rook-ceph patch deployment rook-ceph-mon-b --type='json' -p '[{"op":"remove", "path":"/spec/template/spec/containers/0/livenessProbe"}]' kubectl -n rook-ceph patch deployment rook-ceph-mon-b -p '{"spec": {"template": {"spec": {"containers": [{"name": "mon", "command": ["sleep", "infinity"], "args": []}]}}}}' ```