The result of this question is evaluated as Wrong. After I added “periodSeconds: 5” then it evaluated as Correct. But in the question there is no requirement to add periodSeconds.
I just tried Q19, and the grader accepted my answer, which does NOT use periodSeconds (which wouldn’t make much sense for a readinessProbe in any case:):
I’m not sure how you got all of the items wrong. Most likely you are creating the pod in the wrong context somehow in this case. When you try this again:
Make sure you have run kubectl config use-context cluster1
Save away the pod’s YAML. Don’t use the grep -v trick you’re using – I suspect that’s part of your problem due to the trailing | symbol you leave hanging.
Delete the pod (I’d use k delete pod simple-webapp-aom --now)
Neither clear what you did in this case, nor is it clear what the grader returned. Since I attempted the problem just 2 days ago, it’s clear that the grader will work at least under some circumstances. Could you please:
Try this again, but show me what the grader actually indicated this time.
Show me the YAML as you passed to kubectl. I’d recommend using k delete pod and then k apply -f this time, since there are some subtleties with using k replace -f that might make things less clear in this case.
OK, NOW I see what your problem was. And you are correct – there’s an issue with the grader. The problem is that the grader is not setting the current context when it checks Q19 and Q20, so when you do Q21 (which is on cluster3), the context is no longer set to cluster1. If you change the current cluster back to cluster1, they are graded correctly.
Bizarre, but true. I’ve reported this to the lab engineering team, which should be able to fix this bug now that you’ve uncovered it for us Sorry for the hassle – this one was pretty subtle.