Service.Builder |
Service.Builder.clusterIp(String clusterIp) |
The IP address of the service and is usually assigned randomly by the master.
|
static Service.Builder |
Service.Builder.create(software.constructs.Construct scope,
String id) |
|
Service.Builder |
Service.Builder.externalIPs(List<String> externalIPs) |
A list of IP addresses for which nodes in the cluster will also accept traffic for this service.
|
Service.Builder |
Service.Builder.externalName(String externalName) |
The externalName to be used when ServiceType.EXTERNAL_NAME is set.
|
Service.Builder |
Service.Builder.loadBalancerSourceRanges(List<String> loadBalancerSourceRanges) |
A list of CIDR IP addresses, if specified and supported by the platform, will restrict traffic through the cloud-provider load-balancer to the specified client IPs.
|
Service.Builder |
Service.Builder.metadata(org.cdk8s.ApiObjectMetadata metadata) |
Metadata that all persisted resources must have, which includes all objects users must create.
|
Service.Builder |
Service.Builder.ports(List<? extends ServicePort> ports) |
The ports this service binds to.
|
Service.Builder |
Service.Builder.selector(IPodSelector selector) |
Which pods should the service select and route to.
|
Service.Builder |
Service.Builder.type(ServiceType type) |
Determines how the Service is exposed.
|