@Generated(value="jsii-pacmak/1.34.0 (build 9b72778)", date="2021-09-21T00:27:37.506Z") @Stability(value=Stable) public interface ServiceProps extends software.amazon.jsii.JsiiSerializable, ResourceProps
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceProps.Builder
A builder for
ServiceProps |
static class |
ServiceProps.Jsii$Proxy
An implementation for
ServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static ServiceProps.Builder |
builder() |
default String |
getClusterIP()
The IP address of the service and is usually assigned randomly by the master.
|
default List<String> |
getExternalIPs()
A list of IP addresses for which nodes in the cluster will also accept traffic for this service.
|
default String |
getExternalName()
The externalName to be used when ServiceType.EXTERNAL_NAME is set.
|
default List<String> |
getLoadBalancerSourceRanges()
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.
|
default List<ServicePort> |
getPorts()
The port exposed by this service.
|
default ServiceType |
getType()
Determines how the Service is exposed.
|
getMetadata@Stability(value=Stable) @Nullable default String getClusterIP()
If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName.
Default: - Automatically assigned.
https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies@Stability(value=Stable) @Nullable default List<String> getExternalIPs()
These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.
Default: - No external IPs.
@Stability(value=Stable) @Nullable default String getExternalName()
Default: - No external name.
@Stability(value=Stable) @Nullable default List<String> getLoadBalancerSourceRanges()
More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/
@Stability(value=Stable) @Nullable default List<ServicePort> getPorts()
More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
@Stability(value=Stable) @Nullable default ServiceType getType()
More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
Default: ServiceType.ClusterIP
@Stability(value=Stable) static ServiceProps.Builder builder()
builder in interface ResourcePropsServiceProps.Builder of ServicePropsCopyright © 2021. All rights reserved.