CKAD Exam Doubt

Hi Everyone,
I have one very basic doubt regarding CKAD Examination.

Say, a question asks to perform a couple of tasks on a deployment and once the tasks are done, just rollback.

My assumption while giving the exam was to consider each task as a separate deployment revision (so say if the question had 3 tasks, I created 3 revisions of the deployment) and then rollback to the second last revision.

Is this the correct assumption or should I have treated all the tasks as one single deployment revision upgrade and then rollback to the previous deployment.

How the question expected me to solve the problem was not very clear to me.
Can someone please clearify the same.

Thanks

Hi @Piyushparmar

Such tasks test the ability to use the existing kubectl commands to perform the task.
For example:

  • Create a Deployment
  • Set an env var/serviceAccount in that Deployment
  • Update the image of the Deployment.

Once done with the above, rollout the Deployment to the earlier revision and store the command used to do it or the output of the rollback in a file.

All these can be achieved using kubectl commands that enable us to work on the Deployment created earlier.

Hope this helps.

Hi @Santosh_KodeKloud

Thanks for the reply.

Actually my question was, say if the exam asks me to do the following tasks on my deployment:

Task1: update the container name
Task2: update the container image
Task3: add some env variables

And rollback to the previous deployment, then what should be the strategy to solve the question.

Should it be like solving each task individually (which will create 3 different revisions of the deployment) and then finally rollback, which reverts the last task (task3 here) done

Or should it be like solving all the three tasks in one go (which will create onle one new revision) and then finally rollback the new revision, so that the deployment resets back to the exact state provided at the start of the question?

Here, as you mentioned, a new revision will be created. Now, if the Q says rollback to previous revision, it means to rollback one revision back.
Note: The Question will make the requirements clear.