Mayur Sharma:
Hi team,
I am following below exercise
https://github.com/dgkanatsios/CKAD-exercises/blob/master/f.services.md#create-a-pod-with-image-nginx-called-nginx-and-expose-its-port-80
Question:
Create a pod with image nginx called nginx and expose its port 80
I am confused whether service needs to be created or not, as port I can export without creating the service also like,
kubectl run nginx --image=nginx --port=80
The second question after above expects that you would have created the clusterIP service using the below command:
kubectl run nginx --image=nginx --restart=Never --port=80 --expose
Please guide me how do I understand it is asking for creating the service also.
Thanks