@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-06T08:58:17.566Z[Etc/UTC]") public class V1ServiceSpec extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_CLUSTER_I_P |
static String |
SERIALIZED_NAME_EXTERNAL_I_PS |
static String |
SERIALIZED_NAME_EXTERNAL_NAME |
static String |
SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY |
static String |
SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT |
static String |
SERIALIZED_NAME_IP_FAMILY |
static String |
SERIALIZED_NAME_LOAD_BALANCER_I_P |
static String |
SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES |
static String |
SERIALIZED_NAME_PORTS |
static String |
SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES |
static String |
SERIALIZED_NAME_SELECTOR |
static String |
SERIALIZED_NAME_SESSION_AFFINITY |
static String |
SERIALIZED_NAME_SESSION_AFFINITY_CONFIG |
static String |
SERIALIZED_NAME_TOPOLOGY_KEYS |
static String |
SERIALIZED_NAME_TYPE |
Constructor and Description |
---|
V1ServiceSpec() |
Modifier and Type | Method and Description |
---|---|
V1ServiceSpec |
addExternalIPsItem(String externalIPsItem) |
V1ServiceSpec |
addLoadBalancerSourceRangesItem(String loadBalancerSourceRangesItem) |
V1ServiceSpec |
addPortsItem(V1ServicePort portsItem) |
V1ServiceSpec |
addTopologyKeysItem(String topologyKeysItem) |
V1ServiceSpec |
clusterIP(String clusterIP) |
boolean |
equals(Object o) |
V1ServiceSpec |
externalIPs(List<String> externalIPs) |
V1ServiceSpec |
externalName(String externalName) |
V1ServiceSpec |
externalTrafficPolicy(String externalTrafficPolicy) |
String |
getClusterIP()
clusterIP is the IP address of the service and is usually assigned randomly by the master.
|
List<String> |
getExternalIPs()
externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic
for this service.
|
String |
getExternalName()
externalName is the external reference that kubedns or equivalent will return as a CNAME record
for this service.
|
String |
getExternalTrafficPolicy()
externalTrafficPolicy denotes if this Service desires to route external traffic to node-local
or cluster-wide endpoints.
|
Integer |
getHealthCheckNodePort()
healthCheckNodePort specifies the healthcheck nodePort for the service.
|
String |
getIpFamily()
ipFamily specifies whether this Service has a preference for a particular IP family (e.g.
|
String |
getLoadBalancerIP()
Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified
in this field.
|
List<String> |
getLoadBalancerSourceRanges()
If specified and supported by the platform, this will restrict traffic through the
cloud-provider load-balancer will be restricted to the specified client IPs.
|
List<V1ServicePort> |
getPorts()
The list of ports that are exposed by this service.
|
Boolean |
getPublishNotReadyAddresses()
publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service
should disregard any indications of ready/not-ready.
|
Map<String,String> |
getSelector()
Route service traffic to pods with label keys and values matching this selector.
|
String |
getSessionAffinity()
Supports \"ClientIP\" and \"None\".
|
V1SessionAffinityConfig |
getSessionAffinityConfig()
Get sessionAffinityConfig
|
List<String> |
getTopologyKeys()
topologyKeys is a preference-order list of topology keys which implementations of services
should use to preferentially sort endpoints when accessing this Service, it can not be used at
the same time as externalTrafficPolicy=Local.
|
String |
getType()
type determines how the Service is exposed.
|
int |
hashCode() |
V1ServiceSpec |
healthCheckNodePort(Integer healthCheckNodePort) |
V1ServiceSpec |
ipFamily(String ipFamily) |
V1ServiceSpec |
loadBalancerIP(String loadBalancerIP) |
V1ServiceSpec |
loadBalancerSourceRanges(List<String> loadBalancerSourceRanges) |
V1ServiceSpec |
ports(List<V1ServicePort> ports) |
V1ServiceSpec |
publishNotReadyAddresses(Boolean publishNotReadyAddresses) |
V1ServiceSpec |
putSelectorItem(String key,
String selectorItem) |
V1ServiceSpec |
selector(Map<String,String> selector) |
V1ServiceSpec |
sessionAffinity(String sessionAffinity) |
V1ServiceSpec |
sessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) |
void |
setClusterIP(String clusterIP) |
void |
setExternalIPs(List<String> externalIPs) |
void |
setExternalName(String externalName) |
void |
setExternalTrafficPolicy(String externalTrafficPolicy) |
void |
setHealthCheckNodePort(Integer healthCheckNodePort) |
void |
setIpFamily(String ipFamily) |
void |
setLoadBalancerIP(String loadBalancerIP) |
void |
setLoadBalancerSourceRanges(List<String> loadBalancerSourceRanges) |
void |
setPorts(List<V1ServicePort> ports) |
void |
setPublishNotReadyAddresses(Boolean publishNotReadyAddresses) |
void |
setSelector(Map<String,String> selector) |
void |
setSessionAffinity(String sessionAffinity) |
void |
setSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) |
void |
setTopologyKeys(List<String> topologyKeys) |
void |
setType(String type) |
V1ServiceSpec |
topologyKeys(List<String> topologyKeys) |
String |
toString() |
V1ServiceSpec |
type(String type) |
public static final String SERIALIZED_NAME_CLUSTER_I_P
public static final String SERIALIZED_NAME_EXTERNAL_I_PS
public static final String SERIALIZED_NAME_EXTERNAL_NAME
public static final String SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY
public static final String SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT
public static final String SERIALIZED_NAME_IP_FAMILY
public static final String SERIALIZED_NAME_LOAD_BALANCER_I_P
public static final String SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES
public static final String SERIALIZED_NAME_PORTS
public static final String SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES
public static final String SERIALIZED_NAME_SELECTOR
public static final String SERIALIZED_NAME_SESSION_AFFINITY
public static final String SERIALIZED_NAME_SESSION_AFFINITY_CONFIG
public static final String SERIALIZED_NAME_TOPOLOGY_KEYS
public static final String SERIALIZED_NAME_TYPE
public V1ServiceSpec clusterIP(String clusterIP)
@Nullable public String getClusterIP()
public void setClusterIP(String clusterIP)
public V1ServiceSpec externalIPs(List<String> externalIPs)
public V1ServiceSpec addExternalIPsItem(String externalIPsItem)
@Nullable public List<String> getExternalIPs()
public V1ServiceSpec externalName(String externalName)
@Nullable public String getExternalName()
public void setExternalName(String externalName)
public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy)
@Nullable public String getExternalTrafficPolicy()
public void setExternalTrafficPolicy(String externalTrafficPolicy)
public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort)
@Nullable public Integer getHealthCheckNodePort()
public void setHealthCheckNodePort(Integer healthCheckNodePort)
public V1ServiceSpec ipFamily(String ipFamily)
@Nullable public String getIpFamily()
public void setIpFamily(String ipFamily)
public V1ServiceSpec loadBalancerIP(String loadBalancerIP)
@Nullable public String getLoadBalancerIP()
public void setLoadBalancerIP(String loadBalancerIP)
public V1ServiceSpec loadBalancerSourceRanges(List<String> loadBalancerSourceRanges)
public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRangesItem)
@Nullable public List<String> getLoadBalancerSourceRanges()
public void setLoadBalancerSourceRanges(List<String> loadBalancerSourceRanges)
public V1ServiceSpec ports(List<V1ServicePort> ports)
public V1ServiceSpec addPortsItem(V1ServicePort portsItem)
@Nullable public List<V1ServicePort> getPorts()
public void setPorts(List<V1ServicePort> ports)
public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses)
@Nullable public Boolean getPublishNotReadyAddresses()
public void setPublishNotReadyAddresses(Boolean publishNotReadyAddresses)
public V1ServiceSpec selector(Map<String,String> selector)
public V1ServiceSpec putSelectorItem(String key, String selectorItem)
@Nullable public Map<String,String> getSelector()
public V1ServiceSpec sessionAffinity(String sessionAffinity)
@Nullable public String getSessionAffinity()
public void setSessionAffinity(String sessionAffinity)
public V1ServiceSpec sessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig)
@Nullable public V1SessionAffinityConfig getSessionAffinityConfig()
public void setSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig)
public V1ServiceSpec topologyKeys(List<String> topologyKeys)
public V1ServiceSpec addTopologyKeysItem(String topologyKeysItem)
@Nullable public List<String> getTopologyKeys()
public V1ServiceSpec type(String type)
@Nullable public String getType()
public void setType(String type)
Copyright © 2020. All rights reserved.