Package org.cdk8s.plus24
Interface DeploymentExposeViaServiceOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ExposeDeploymentViaIngressOptions
- All Known Implementing Classes:
DeploymentExposeViaServiceOptions.Jsii$Proxy
,ExposeDeploymentViaIngressOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-22T02:29:49.481Z") @Stability(Stable) public interface DeploymentExposeViaServiceOptions extends software.amazon.jsii.JsiiSerializable
Options for `Deployment.exposeViaService`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DeploymentExposeViaServiceOptions.Builder
A builder forDeploymentExposeViaServiceOptions
static class
DeploymentExposeViaServiceOptions.Jsii$Proxy
An implementation forDeploymentExposeViaServiceOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeploymentExposeViaServiceOptions.Builder
builder()
default String
getName()
The name of the service to expose.default List<ServicePort>
getPorts()
The ports that the service should bind to.default ServiceType
getServiceType()
The type of the exposed service.
-
-
-
Method Detail
-
getName
@Stability(Stable) @Nullable default String getName()
The name of the service to expose.If you'd like to expose the deployment multiple times, you must explicitly set a name starting from the second expose call.
Default: - auto generated.
-
getPorts
@Stability(Stable) @Nullable default List<ServicePort> getPorts()
The ports that the service should bind to.Default: - extracted from the deployment.
-
getServiceType
@Stability(Stable) @Nullable default ServiceType getServiceType()
The type of the exposed service.Default: - ClusterIP.
-
builder
@Stability(Stable) static DeploymentExposeViaServiceOptions.Builder builder()
-
-