code: def metadata_ports_to_k8s_ports(ports):
      
  
      exposed_ports = []
  
      for port in ports:
          splits = port.split("/", 1)
          port = int(splits[0])
          protocol = splits[1].upper() if len(splits) > 1 else None
          exposed_ports.append(client.V1ServicePort(port=port, protocol=protocol))
  
      return exposed_ports
docs: :param ports: list of str, list of exposed ports, example:
              - ['1234/tcp', '8080/udp']
      :return: list of V1ServicePort