Student question: NodePort Service

dharmjit singh:
For Practice Test Services Question -10 with description

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

selector should be a key value?? @Mumshad Mannambeth @Rahul Soni

Rahul Soni:
yup

dharmjit singh:
@Rahul Soni will it be updated??

Rahul Soni:
You need to use the same labels as that of pod in the selectors field of service.