CKA mock exam course - 1st Mock Exam - Q4

It says that the cronjob could access with curl using the pod’ service name:
“orange-svc-cka10-trb”

Actually it doesn’t. I succeed in connection only with ClusterIP of the service.
Can u please tell me what i’m doing wrong?

It’s not clear exactly what you’re doing here. There are two issues in the question:

  • The schedule is wrong
  • The service name as coded in the cronjob is wrong.

If you fix both, the job will work; you’ll need to delete the cj and recreate it from yaml, but that will work.

Since it’s a ClusterIP service, it will work from within one of the cj pods, but it will not work from the command line, if that’s what you’re doing.

Ok let’s say the same exact error is here:

can u explain how is failing?

Please describe what you did, and I’ll venture a guess. Not being clear what you did, I’m not sure what’s wrong.

Sir, i’ve passed all previous questions, and if you’re aware of k8s dynamics you can clearly see what i’ve done in the screenshot.

Today i’ve just moved from a fresh start to that specific question, and it worked just adjusting the svc ports, as intended, but what’s the difference between yesterday and today?
Well, i’ll try again but i’ve experimented some annoying disconnections from the server (no internet problem whatsoever by my side), that could be the culprit.
Today I’ve just started the 3rd…and just at very first question there’s a problem. I’ve opened another topic.

If I ask for additional information, it’s because I need more than your screenshots. I’m still not clear what you did. Please consider adding:

  • what commands you ran
  • relevant YAML files