@Generated(value="jsii-pacmak/1.43.0 (build b69a797)", date="2021-11-15T00:20:49.022Z") @Stability(value=Stable) public enum ServiceType extends Enum<ServiceType>
Kubernetes ServiceTypes allow you to specify what kind of Service you want. The default is ClusterIP.
| Enum Constant and Description |
|---|
CLUSTER_IP
Exposes the Service on a cluster-internal IP.
|
EXTERNAL_NAME
Maps the Service to the contents of the externalName field (e.g.
|
LOAD_BALANCER
Exposes the Service externally using a cloud provider's load balancer.
|
NODE_PORT
Exposes the Service on each Node's IP at a static port (the NodePort).
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final ServiceType CLUSTER_IP
Choosing this value makes the Service only reachable from within the cluster. This is the default ServiceType
@Stability(value=Stable) public static final ServiceType NODE_PORT
A ClusterIP Service, to which the NodePort Service routes, is automatically created.
You'll be able to contact the NodePort Service, from outside the cluster,
by requesting
@Stability(value=Stable) public static final ServiceType LOAD_BALANCER
NodePort and ClusterIP Services, to which the external load balancer routes, are automatically created.
@Stability(value=Stable) public static final ServiceType EXTERNAL_NAME
Note: You need either kube-dns version 1.7 or CoreDNS version 0.0.8 or higher to use the ExternalName type.
public static ServiceType[] values()
for (ServiceType c : ServiceType.values()) System.out.println(c);
public static ServiceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.