code: func GetContainerPorts(pods ...*v1.Pod) []*v1.ContainerPort {
  	var ports []*v1.ContainerPort
  	for _, pod := range pods {
  		for j := range pod.Spec.Containers {
  			container := &pod.Spec.Containers[j]
  			for k := range container.Ports {
  				ports = append(ports, &container.Ports[k])
  			}
  		}
  	}
  	return ports
  }
docs: // GetContainerPorts returns the used host ports of Pods: if 'port' was used, a 'port:true' pair
  // will be in the result; but it does not resolve port conflict.