ServiceEndpointSpecPortArgs

data class ServiceEndpointSpecPortArgs(val name: Output<String>? = null, val protocol: Output<String>? = null, val publishMode: Output<String>? = null, val publishedPort: Output<Int>? = null, val targetPort: Output<Int>) : ConvertibleToJava<ServiceEndpointSpecPortArgs>

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, protocol: Output<String>? = null, publishMode: Output<String>? = null, publishedPort: Output<Int>? = null, targetPort: Output<Int>)

Properties

Link copied to clipboard
val name: Output<String>? = null

A random name for the port

Link copied to clipboard
val protocol: Output<String>? = null

Rrepresents the protocol of a port: tcp, udp or sctp. Defaults to tcp.

Link copied to clipboard
val publishedPort: Output<Int>? = null

The port on the swarm hosts

Link copied to clipboard
val publishMode: Output<String>? = null

Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to ingress.

Link copied to clipboard
val targetPort: Output<Int>

The port inside the container

Functions

Link copied to clipboard
open override fun toJava(): ServiceEndpointSpecPortArgs