CKA Exam 4 Q12 issues

I do not know why, but all task with “curlme” never work for me. Here is an example:

grade calculator is broken?

Hi @AlekseiAnt

Please verify if the endpoint for the said Service exists. That’s the issue here.
Once the Enpoint is available, you can verify by accessing the Service.

Namastey Santosh

Thanks for coming back to me. I have tried follwoing things:

The manifest of the svc.yaml is the following:
apiVersion: v1
kind: Service
metadata:
name: curlme-cka01-svcn
namespace: default
labels:
run: curlme-cka01-svcn

spec:
ports:

  • port: 80
    protocol: TCP
    targetPort: 80
    selector:
    run: curlme-ckaO1-svcn
    sessionAffinity: None
    type: ClusterIP

The result on the grading tool is following:

You still don’t have an Endpoint for the service: check the output of the k get ep command.

You need to delete the existing Service and re-create it with the same name. Then the new Endpoint will be allocated to the Service, and you can reach the Service from curlpod Pod.

Sorry, I am not understanding what is your point. If you follow my steps ion the picture - it is precisly what I have done:

  1. I have deleted old service.
  2. tried to expose pod with k expose command - it has failed.!
  3. I have written new manifest with right service description.
  4. I have applied the manifest
  5. no endpoint has been appeared no connection working.

What esle is supposed to happen for endpoint to appear? Any special commands? Manifest to configure??

Yes, you deleted the Service and recreated it. But the Endpoint is still missing. That means the Service is wrong somewhere.
Your screenshot does not have YAML for the Service that you used to create the new Service.

After deleting the Service, create the new Service using the imperative command:
k expose pod curlme-cka01-svcn --name curlme-cka01-svcn --port 80. Once created, check for the Endpoints.

I have retried this exam and with exposing pod with imperative command worked fine for me. It seems, like last time it was some glitch in exam environment. It seems to be fine now, so this topic can be closed/resolved.