imagePullPolicy

Hi

I was working on ligthning lab 1 in the fourth exercise Certified Kubernetes Application Developer (CKAD) | KodeKloud , and I got the answer wrong because I did not specify the

imagePullPolicy: IfNotPresent in the container

the question was:

Create a new deployment called nginx-deploy , with one single container called nginx , image nginx:1.16 and 4 replicas. The deployment should use RollingUpdate strategy with maxSurge=1 , and maxUnavailable=2 .
Next upgrade the deployment to version 1.17 .
Finally, once all pods are updated, undo the update and go back to the previous version.

Did I miss something ?
do I have to mark imagePullPolicy: IfNotPresent in my deployments for the CKAD ?

Hi @stephane.hordoir,
Can you please share the check points screenshot? Which is marked as wrong?

And I cross checked. It’s working fine without imagePullPolicy: IfNotPresent

We need to look at the other aspects, and that checkpoints will clear those aspects.

@Tej-Singh-Rana

as the exam ended, I cannot access it anymore but I remember correctly that it was the first item : Deployment created correctly that went wrong/good depending on the imagePullPolicy (I changed several times to make sure)

Please give it another try when you get a chance.

ok ! anywas, thanks a lot for your quick reply and thanks for the exercises ! they are really helpul !