Package org.cdk8s.plus22
Interface ExposeDeploymentViaServiceOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ExposeDeploymentViaIngressOptions
- All Known Implementing Classes:
ExposeDeploymentViaIngressOptions.Jsii$Proxy,ExposeDeploymentViaServiceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.52.1 (build 5ccc8f6)", date="2022-02-08T00:13:45.252Z") @Stability(Stable) public interface ExposeDeploymentViaServiceOptions extends software.amazon.jsii.JsiiSerializable
Options for exposing a deployment via a service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExposeDeploymentViaServiceOptions.BuilderA builder forExposeDeploymentViaServiceOptionsstatic classExposeDeploymentViaServiceOptions.Jsii$ProxyAn implementation forExposeDeploymentViaServiceOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ExposeDeploymentViaServiceOptions.Builderbuilder()default StringgetName()The name of the service to expose.default NumbergetPort()The port that the service should serve on.default ProtocolgetProtocol()The IP protocol for this port.default ServiceTypegetServiceType()The type of the exposed service.default NumbergetTargetPort()The port number the service will redirect to.
-
-
-
Method Detail
-
getName
@Stability(Stable) @Nullable default String getName()
The name of the service to expose.This will be set on the Service.metadata and must be a DNS_LABEL
Default: undefined Uses the system generated name.
-
getPort
@Stability(Stable) @Nullable default Number getPort()
The port that the service should serve on.Default: - Copied from the container of the deployment. If a port could not be determined, throws an error.
-
getProtocol
@Stability(Stable) @Nullable default Protocol getProtocol()
The IP protocol for this port.Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
-
getServiceType
@Stability(Stable) @Nullable default ServiceType getServiceType()
The type of the exposed service.Default: - ClusterIP.
-
getTargetPort
@Stability(Stable) @Nullable default Number getTargetPort()
The port number the service will redirect to.Default: - The port of the first container in the deployment (ie. containers[0].port)
-
builder
@Stability(Stable) static ExposeDeploymentViaServiceOptions.Builder builder()
-
-