One more issue in the same Practice test. When I edit a file in this directory /root/service-definition-1.yaml as on screenshot, I am able to save it and quite. But, when I run a command kubectl apply -f /root/service-definition-1.yaml I get an error. Then, I go back to the file, I see it has the default values as was before my editing even though I edited it and saved. Is there something wrong with the Lab environment or maybe me doing something wrong? Please, assist. Thanks!
I was able to proceed with the following command
kubectl expose deployment simple-webapp-deployment --name=webapp-service --type=NordPort --target-port=8080 --port=8080 --dry-run=client -o yaml > svc.yml