ServiceEndpointSpecPort constructor
const
ServiceEndpointSpecPort({})
Creates a new ServiceEndpointSpecPort.
name A random name for the port
protocol Represents the protocol of a port: tcp, udp or sctp. Defaults to tcp.
publishMode Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to ingress.
publishedPort The port on the swarm hosts
targetPort The port inside the container
Implementation
const ServiceEndpointSpecPort({
this.name,
this.protocol,
this.publishMode,
this.publishedPort,
required this.targetPort,
});