A Service's targetPort is the name http. Its selected Pods expose a container port named web instead. Which change directly makes the named targetPort resolve?

Published
  1. Add a label http=true to the Service
  2. Set targetPort to web or rename the Pod port consistently
  3. Change only the Service's metadata name to web
  4. Increase only the replica count

Comments — 0