Practice-test-services-2 (10 step) not correct check service

Hello! Thanks for awesome platform kodekloud.com.
I try pass Udemy Labs - Certified Kubernetes Administrator with Practice Tests - KodeKloud
10 step have task:

Create a new service to access the web application using the service-definition-1.yaml file

Name: webapp-service
Type: NodePort
targetPort: 8080
port: 8080
nodePort: 30080
selector: simple-webapp

I run
kubectl create service nodeport webapp-service --tcp=8080:8080 --node-port=30080 --dry-run=client -o yaml > svc-webapp.yaml

Delete protocol tcp, change value in selector to simple-webapp
But my selector is:

  selector:
    app: simple-webapp

You check selector

  selector:
    name: simple-webapp

Task dont requires selector name: simple-webapp
Task requires selector simple-webapp

I think practice-test-services-2 (10 step) not correct check service

Hello, @antonpatsev
Thanks for your kind words.

1 Like

We already mentioned file name service-definition-1.yaml in the question and fields are already available in that manifest file.
You have to use given values in that file.

1 Like