withEndpoint
Method
interface ContainerResource { // ... omitted for brevity withEndpoint( port?: number, targetPort?: number, scheme?: string, name?: string, env?: string, isProxied?: boolean, isExternal?: boolean, protocol?: ProtocolType): IResourceWithEndpoints;}Signature
method
withEndpointbuilderAdds a network endpoint
withEndpoint( port?: number, targetPort?: number, scheme?: string, name?: string, env?: string, isProxied?: boolean, isExternal?: boolean, protocol?: ProtocolType): IResourceWithEndpointsParameters
portnumberoptionaltargetPortnumberoptionalschemestringoptionalnamestringoptionalenvstringoptionalisProxiedbooleanoptionalisExternalbooleanoptionalprotocolProtocolTypeoptionalReturns
IResourceWithEndpointsApplies to
This method applies to the following types: