From e5063336cefd49b6ea99564ee3f2791fbea54a8d Mon Sep 17 00:00:00 2001 From: Matt Spencer <99685508+mtspn@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:21:05 -0800 Subject: [PATCH] Update 08_persistent_storage.md --- 101-lab/content/08_persistent_storage.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/101-lab/content/08_persistent_storage.md b/101-lab/content/08_persistent_storage.md index f1147a9..f6300ea 100644 --- a/101-lab/content/08_persistent_storage.md +++ b/101-lab/content/08_persistent_storage.md @@ -90,7 +90,7 @@ RWO storage (which was selected above) can only be attached to a single pod at a ![](./images/06_persistent_storage_08.png) -- Switch to recreate +- Switch to recreate, making sure to remove the lines relating to rolling deployment. ### RWX Storage __Objective__: Cause MongoDB to corrupt its data file by using the wrong storage class for MongoDB. @@ -150,7 +150,8 @@ To fix that we will need to replace the `RWX` PVC with a `RWO` PVC and change th ``` - Change the deployment strategy to use `Recreate` deployment strategy ```oc:cli - oc -n [-dev] patch deployment/mongodb-[username] -p '{"spec":{"strategy":{"activeDeadlineSeconds":21600,"recreateParams":{"timeoutSeconds":600},"resources":{},"type":"Recreate"}}}' + oc -n d8f105-dev patch deployment mongodb-[username] --type=merge -p '{"spec":{"strategy":{"type":"Recreate"}}}' + ``` - Go to the `mongodb-[username]` DeploymentConfig and `Resume Rollouts` (under `Actions` menu on the top right side) ```oc:cli