final case class ServiceSpec(sessionAffinityConfig: Option[SessionAffinityConfig] = None, loadBalancerSourceRanges: Option[Seq[String]] = None, sessionAffinity: Option[String] = None, clusterIPs: Option[Seq[String]] = None, externalTrafficPolicy: Option[String] = None, loadBalancerIP: Option[String] = None, clusterIP: Option[String] = None, ports: Option[Seq[ServicePort]] = None, healthCheckNodePort: Option[Int] = None, allocateLoadBalancerNodePorts: Option[Boolean] = None, externalIPs: Option[Seq[String]] = None, ipFamilies: Option[Seq[String]] = None, internalTrafficPolicy: Option[String] = None, externalName: Option[String] = None, ipFamilyPolicy: Option[String] = None, type: Option[String] = None, selector: Option[Map[String, String]] = None, loadBalancerClass: Option[String] = None, publishNotReadyAddresses: Option[Boolean] = None) extends Product with Serializable
ServiceSpec describes the attributes that a user creates on a service.
- Source
- ServiceSpec.scala
- Alphabetic
- By Inheritance
- ServiceSpec
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ServiceSpec(sessionAffinityConfig: Option[SessionAffinityConfig] = None, loadBalancerSourceRanges: Option[Seq[String]] = None, sessionAffinity: Option[String] = None, clusterIPs: Option[Seq[String]] = None, externalTrafficPolicy: Option[String] = None, loadBalancerIP: Option[String] = None, clusterIP: Option[String] = None, ports: Option[Seq[ServicePort]] = None, healthCheckNodePort: Option[Int] = None, allocateLoadBalancerNodePorts: Option[Boolean] = None, externalIPs: Option[Seq[String]] = None, ipFamilies: Option[Seq[String]] = None, internalTrafficPolicy: Option[String] = None, externalName: Option[String] = None, ipFamilyPolicy: Option[String] = None, type: Option[String] = None, selector: Option[Map[String, String]] = None, loadBalancerClass: Option[String] = None, publishNotReadyAddresses: Option[Boolean] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addClusterIPs(newValues: String*): ServiceSpec
Appends new values to clusterIPs
- def addExternalIPs(newValues: String*): ServiceSpec
Appends new values to externalIPs
- def addIpFamilies(newValues: String*): ServiceSpec
Appends new values to ipFamilies
- def addLoadBalancerSourceRanges(newValues: String*): ServiceSpec
Appends new values to loadBalancerSourceRanges
- def addPorts(newValues: ServicePort*): ServiceSpec
Appends new values to ports
- def addSelector(newValues: (String, String)*): ServiceSpec
Adds new values to selector
- val allocateLoadBalancerNodePorts: Option[Boolean]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val clusterIP: Option[String]
- val clusterIPs: Option[Seq[String]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val externalIPs: Option[Seq[String]]
- val externalName: Option[String]
- val externalTrafficPolicy: Option[String]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val healthCheckNodePort: Option[Int]
- val internalTrafficPolicy: Option[String]
- val ipFamilies: Option[Seq[String]]
- val ipFamilyPolicy: Option[String]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val loadBalancerClass: Option[String]
- val loadBalancerIP: Option[String]
- val loadBalancerSourceRanges: Option[Seq[String]]
- def mapAllocateLoadBalancerNodePorts(f: (Boolean) => Boolean): ServiceSpec
if allocateLoadBalancerNodePorts has a value, transforms to the result of function
- def mapClusterIP(f: (String) => String): ServiceSpec
if clusterIP has a value, transforms to the result of function
- def mapClusterIPs(f: (Seq[String]) => Seq[String]): ServiceSpec
if clusterIPs has a value, transforms to the result of function
- def mapExternalIPs(f: (Seq[String]) => Seq[String]): ServiceSpec
if externalIPs has a value, transforms to the result of function
- def mapExternalName(f: (String) => String): ServiceSpec
if externalName has a value, transforms to the result of function
- def mapExternalTrafficPolicy(f: (String) => String): ServiceSpec
if externalTrafficPolicy has a value, transforms to the result of function
- def mapHealthCheckNodePort(f: (Int) => Int): ServiceSpec
if healthCheckNodePort has a value, transforms to the result of function
- def mapInternalTrafficPolicy(f: (String) => String): ServiceSpec
if internalTrafficPolicy has a value, transforms to the result of function
- def mapIpFamilies(f: (Seq[String]) => Seq[String]): ServiceSpec
if ipFamilies has a value, transforms to the result of function
- def mapIpFamilyPolicy(f: (String) => String): ServiceSpec
if ipFamilyPolicy has a value, transforms to the result of function
- def mapLoadBalancerClass(f: (String) => String): ServiceSpec
if loadBalancerClass has a value, transforms to the result of function
- def mapLoadBalancerIP(f: (String) => String): ServiceSpec
if loadBalancerIP has a value, transforms to the result of function
- def mapLoadBalancerSourceRanges(f: (Seq[String]) => Seq[String]): ServiceSpec
if loadBalancerSourceRanges has a value, transforms to the result of function
- def mapPorts(f: (Seq[ServicePort]) => Seq[ServicePort]): ServiceSpec
if ports has a value, transforms to the result of function
- def mapPublishNotReadyAddresses(f: (Boolean) => Boolean): ServiceSpec
if publishNotReadyAddresses has a value, transforms to the result of function
- def mapSelector(f: (Map[String, String]) => Map[String, String]): ServiceSpec
if selector has a value, transforms to the result of function
- def mapSessionAffinity(f: (String) => String): ServiceSpec
if sessionAffinity has a value, transforms to the result of function
- def mapSessionAffinityConfig(f: (SessionAffinityConfig) => SessionAffinityConfig): ServiceSpec
if sessionAffinityConfig has a value, transforms to the result of function
- def mapType(f: (String) => String): ServiceSpec
if
type
has a value, transforms to the result of function - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val ports: Option[Seq[ServicePort]]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val publishNotReadyAddresses: Option[Boolean]
- val selector: Option[Map[String, String]]
- val sessionAffinity: Option[String]
- val sessionAffinityConfig: Option[SessionAffinityConfig]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val type: Option[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAllocateLoadBalancerNodePorts(value: Boolean): ServiceSpec
Returns a new data with allocateLoadBalancerNodePorts set to new value
- def withClusterIP(value: String): ServiceSpec
Returns a new data with clusterIP set to new value
- def withClusterIPs(value: Seq[String]): ServiceSpec
Returns a new data with clusterIPs set to new value
- def withExternalIPs(value: Seq[String]): ServiceSpec
Returns a new data with externalIPs set to new value
- def withExternalName(value: String): ServiceSpec
Returns a new data with externalName set to new value
- def withExternalTrafficPolicy(value: String): ServiceSpec
Returns a new data with externalTrafficPolicy set to new value
- def withHealthCheckNodePort(value: Int): ServiceSpec
Returns a new data with healthCheckNodePort set to new value
- def withInternalTrafficPolicy(value: String): ServiceSpec
Returns a new data with internalTrafficPolicy set to new value
- def withIpFamilies(value: Seq[String]): ServiceSpec
Returns a new data with ipFamilies set to new value
- def withIpFamilyPolicy(value: String): ServiceSpec
Returns a new data with ipFamilyPolicy set to new value
- def withLoadBalancerClass(value: String): ServiceSpec
Returns a new data with loadBalancerClass set to new value
- def withLoadBalancerIP(value: String): ServiceSpec
Returns a new data with loadBalancerIP set to new value
- def withLoadBalancerSourceRanges(value: Seq[String]): ServiceSpec
Returns a new data with loadBalancerSourceRanges set to new value
- def withPorts(value: Seq[ServicePort]): ServiceSpec
Returns a new data with ports set to new value
- def withPublishNotReadyAddresses(value: Boolean): ServiceSpec
Returns a new data with publishNotReadyAddresses set to new value
- def withSelector(value: Map[String, String]): ServiceSpec
Returns a new data with selector set to new value
- def withSessionAffinity(value: String): ServiceSpec
Returns a new data with sessionAffinity set to new value
- def withSessionAffinityConfig(value: SessionAffinityConfig): ServiceSpec
Returns a new data with sessionAffinityConfig set to new value
- def withType(value: String): ServiceSpec
Returns a new data with
type
set to new value