Package io.fabric8.kubernetes.api.model
Class ReplicationControllerSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ReplicationControllerSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ReplicationControllerSpecBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ReplicationControllerSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ReplicationControllerSpecBuilder>, KubernetesResource
ReplicationControllerSpec is the specification of a replication controller.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicationControllerSpec()
No args constructor for use in serializationReplicationControllerSpec(Integer minReadySeconds, Integer replicas, Map<String,String> selector, PodTemplateSpec template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationControllerSpecBuilder
edit()
Map<String,Object>
getAdditionalProperties()
Integer
getMinReadySeconds()
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.Integer
getReplicas()
Replicas is the number of desired replicas.Map<String,String>
getSelector()
Selector is a label query over pods that should match the Replicas count.PodTemplateSpec
getTemplate()
ReplicationControllerSpec is the specification of a replication controller.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setMinReadySeconds(Integer minReadySeconds)
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.void
setReplicas(Integer replicas)
Replicas is the number of desired replicas.void
setSelector(Map<String,String> selector)
Selector is a label query over pods that should match the Replicas count.void
setTemplate(PodTemplateSpec template)
ReplicationControllerSpec is the specification of a replication controller.ReplicationControllerSpecBuilder
toBuilder()
-
-
-
Method Detail
-
getMinReadySeconds
public Integer getMinReadySeconds()
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
-
setMinReadySeconds
public void setMinReadySeconds(Integer minReadySeconds)
Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
-
getReplicas
public Integer getReplicas()
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
-
setReplicas
public void setReplicas(Integer replicas)
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
-
getSelector
public Map<String,String> getSelector()
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
setSelector
public void setSelector(Map<String,String> selector)
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
getTemplate
public PodTemplateSpec getTemplate()
ReplicationControllerSpec is the specification of a replication controller.
-
setTemplate
public void setTemplate(PodTemplateSpec template)
ReplicationControllerSpec is the specification of a replication controller.
-
edit
public ReplicationControllerSpecBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ReplicationControllerSpecBuilder>
-
toBuilder
public ReplicationControllerSpecBuilder toBuilder()
-
-