There are several different port declaration fields in Kubernetes. This is a brief introduction to each type and the meaning of each type in Kubernetes YAML
Service supports access to a group of Pods in Kubernetes through the network, and the service selects Pods based on labels. When making a network request to the service, it will select all Pods in the cluster that matches the service selector, select one of them, and forward the network request to it.