I have created Deployment using Below Command
kubectl create deployment nginx --image=nginx --port=80 --replicas=3
I am looking for answer on how to Create Service to expose Individual Pods via NodePort on Nodes they are scheduled.
THIS COMMAND WILL NOT WORK: because this will send request to one of the pods
kubectl expose deploy nginx --name nginx-service --target-port=80 --type=NodePort
is there something that will create 3 separate service automatically one for each pod?
I tried this but thats not expected result
kubectl expose deploy nginx --name nginx-service --target-port=80 --type=NodePort