Package org.cdk8s.plus23
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.61.0 (build abf4039)", date="2022-07-06T20:17:23.556Z") @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 classDeploymentExposeViaServiceOptions.BuilderA builder forDeploymentExposeViaServiceOptionsstatic classDeploymentExposeViaServiceOptions.Jsii$ProxyAn implementation forDeploymentExposeViaServiceOptions
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeploymentExposeViaServiceOptions.Builderbuilder()default StringgetName()The name of the service to expose.default List<ServicePort>getPorts()The ports that the service should bind to.default ServiceTypegetServiceType()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()
-
-