public class V1ServiceSpec extends Object
Constructor and Description |
---|
V1ServiceSpec() |
Modifier and Type | Method and Description |
---|---|
V1ServiceSpec |
addDeprecatedPublicIPsItem(String deprecatedPublicIPsItem) |
V1ServiceSpec |
addExternalIPsItem(String externalIPsItem) |
V1ServiceSpec |
addLoadBalancerSourceRangesItem(String loadBalancerSourceRangesItem) |
V1ServiceSpec |
addPortsItem(V1ServicePort portsItem) |
V1ServiceSpec |
clusterIP(String clusterIP) |
V1ServiceSpec |
deprecatedPublicIPs(List<String> deprecatedPublicIPs) |
boolean |
equals(Object o) |
V1ServiceSpec |
externalIPs(List<String> externalIPs) |
V1ServiceSpec |
externalName(String externalName) |
String |
getClusterIP()
clusterIP is the IP address of the service and is usually assigned randomly by the master.
|
List<String> |
getDeprecatedPublicIPs()
deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics.
|
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 |
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.
|
Map<String,String> |
getSelector()
Route service traffic to pods with label keys and values matching this selector.
|
String |
getSessionAffinity()
Supports \"ClientIP\" and \"None\".
|
String |
getType()
type determines how the Service is exposed.
|
int |
hashCode() |
V1ServiceSpec |
loadBalancerIP(String loadBalancerIP) |
V1ServiceSpec |
loadBalancerSourceRanges(List<String> loadBalancerSourceRanges) |
V1ServiceSpec |
ports(List<V1ServicePort> ports) |
V1ServiceSpec |
putSelectorItem(String key,
String selectorItem) |
V1ServiceSpec |
selector(Map<String,String> selector) |
V1ServiceSpec |
sessionAffinity(String sessionAffinity) |
void |
setClusterIP(String clusterIP) |
void |
setDeprecatedPublicIPs(List<String> deprecatedPublicIPs) |
void |
setExternalIPs(List<String> externalIPs) |
void |
setExternalName(String externalName) |
void |
setLoadBalancerIP(String loadBalancerIP) |
void |
setLoadBalancerSourceRanges(List<String> loadBalancerSourceRanges) |
void |
setPorts(List<V1ServicePort> ports) |
void |
setSelector(Map<String,String> selector) |
void |
setSessionAffinity(String sessionAffinity) |
void |
setType(String type) |
String |
toString() |
V1ServiceSpec |
type(String type) |
public V1ServiceSpec clusterIP(String clusterIP)
public String getClusterIP()
public void setClusterIP(String clusterIP)
public V1ServiceSpec deprecatedPublicIPs(List<String> deprecatedPublicIPs)
public V1ServiceSpec addDeprecatedPublicIPsItem(String deprecatedPublicIPsItem)
public List<String> getDeprecatedPublicIPs()
public V1ServiceSpec externalIPs(List<String> externalIPs)
public V1ServiceSpec addExternalIPsItem(String externalIPsItem)
public List<String> getExternalIPs()
public V1ServiceSpec externalName(String externalName)
public String getExternalName()
public void setExternalName(String externalName)
public V1ServiceSpec loadBalancerIP(String loadBalancerIP)
public String getLoadBalancerIP()
public void setLoadBalancerIP(String loadBalancerIP)
public V1ServiceSpec loadBalancerSourceRanges(List<String> loadBalancerSourceRanges)
public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRangesItem)
public List<String> getLoadBalancerSourceRanges()
public void setLoadBalancerSourceRanges(List<String> loadBalancerSourceRanges)
public V1ServiceSpec ports(List<V1ServicePort> ports)
public V1ServiceSpec addPortsItem(V1ServicePort portsItem)
public List<V1ServicePort> getPorts()
public void setPorts(List<V1ServicePort> ports)
public V1ServiceSpec selector(Map<String,String> selector)
public V1ServiceSpec putSelectorItem(String key, String selectorItem)
public Map<String,String> getSelector()
public V1ServiceSpec sessionAffinity(String sessionAffinity)
public String getSessionAffinity()
public void setSessionAffinity(String sessionAffinity)
public V1ServiceSpec type(String type)
public String getType()
public void setType(String type)
Copyright © 2017. All rights reserved.