Question: what is difference between port and targetport in kubernetes?
Answer: Port configurations for Kubernetes Services Port exposes the Kubernetes service on the specified port within the cluster. Other pods within the cluster can communicate with this server on the specified port. TargetPort is the port on which the service will send requests to, that your pod will be listening on.