Modifier and Type | Method and Description |
---|---|
List<IPod> |
getPods()
Retrieves the pods for this service
|
int |
getPort()
Returns the first exposed port that is mapped to
a running image
|
String |
getPortalIP()
Returns the IP of the service.
|
List<IServicePort> |
getPorts()
Get the collection of ports for the service
|
Map<String,String> |
getSelector()
Returns the selector used to find the Pod
to which this service is routing
|
int |
getTargetPort() |
void |
setPort(int port)
Sets the exposed port that is mapped to a
running image
|
void |
setPorts(List<IServicePort> ports)
Set the collection of ports for the service
|
void |
setSelector(Map<String,String> selector)
Sets the container name that the service
routes traffic to.
|
void |
setSelector(String key,
String value)
Convenience method for setting a selector that has
a singular key/value pair.
|
void |
setTargetPort(int port)
Sets the container port exposed by the image
|
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJson
accept, getCapability, supports
void setTargetPort(int port)
port
- void setPort(int port)
port
- int getPort()
void setSelector(Map<String,String> selector)
selector
- void setSelector(String key, String value)
key
- value
- Map<String,String> getSelector()
int getTargetPort()
String getPortalIP()
List<IServicePort> getPorts()
void setPorts(List<IServicePort> ports)
Copyright © 2016 Red Hat, Inc. All rights reserved.