public interface IDeploymentConfig extends IResource
| Modifier and Type | Method and Description |
|---|---|
void |
addContainer(DockerImageURI tag,
Set<IPort> containerPorts,
Map<String,String> envVars)
Add a container to the pod that will be spun up as
part of this deployment, defaulting the name to the image name
|
void |
addContainer(String name,
DockerImageURI tag,
Set<IPort> containerPorts,
Map<String,String> envVars,
List<String> volumes)
Add a container to the pod that will be spun up as
part of this deployment.
|
void |
addTemplateLabel(String key,
String value)
Add or update a label to the template spec;
|
IDeploymentTrigger |
addTrigger(String type)
Add a trigger of the given type
or null if the type is unrecognized
|
String |
getDeploymentStrategyType()
Convenience method to get the deployment
strategy type
|
int |
getReplicas()
Returns the number of replicas to be created by the replication
controller generated from this deployment config
|
Map<String,String> |
getReplicaSelector()
Returns the replica selector to be used by the replication
controller generated from this deployment config
|
Collection<String> |
getTriggerTypes()
Get the list of deployment triggers
|
void |
setReplicas(int replicas) |
void |
setReplicaSelector(Map<String,String> selector)
Set the selector by completely replacing the values
that were there before
|
void |
setReplicaSelector(String key,
String value)
Convenience method to set the selector when there
is a single key/value pair
|
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJsonaccept, getCapability, supportsvoid addTemplateLabel(String key, String value)
key - value - int getReplicas()
void setReplicas(int replicas)
Map<String,String> getReplicaSelector()
void setReplicaSelector(Map<String,String> selector)
selector - void setReplicaSelector(String key, String value)
key - value - Collection<String> getTriggerTypes()
String getDeploymentStrategyType()
void addContainer(String name, DockerImageURI tag, Set<IPort> containerPorts, Map<String,String> envVars, List<String> volumes)
name - the name of the containertag - the docker uricontainerPorts - the container portsvolumes - the set of emptyDir volumes to add to the configvoid addContainer(DockerImageURI tag, Set<IPort> containerPorts, Map<String,String> envVars)
tag - the docker uricontainerPorts - the container portsIDeploymentTrigger addTrigger(String type)
type - Copyright © 2016 Red Hat, Inc. All rights reserved.