Class ReplicaSetSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.extensions.ReplicaSetSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ReplicaSetSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ReplicaSetSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ReplicaSetSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourceReplicaSetSpec is the specification of a ReplicaSet.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicaSetSpec()No args constructor for use in serializationReplicaSetSpec(Integer minReadySeconds, Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, io.fabric8.kubernetes.api.model.PodTemplateSpec template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicaSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetMinReadySeconds()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.IntegergetReplicas()Replicas is the number of desired replicas.io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()ReplicaSetSpec is the specification of a ReplicaSet.io.fabric8.kubernetes.api.model.PodTemplateSpecgetTemplate()ReplicaSetSpec is the specification of a ReplicaSet.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMinReadySeconds(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.voidsetReplicas(Integer replicas)Replicas is the number of desired replicas.voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)ReplicaSetSpec is the specification of a ReplicaSet.voidsetTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)ReplicaSetSpec is the specification of a ReplicaSet.ReplicaSetSpecBuildertoBuilder()
-
-
-
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 io.fabric8.kubernetes.api.model.LabelSelector getSelector()
ReplicaSetSpec is the specification of a ReplicaSet.
-
setSelector
public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
ReplicaSetSpec is the specification of a ReplicaSet.
-
getTemplate
public io.fabric8.kubernetes.api.model.PodTemplateSpec getTemplate()
ReplicaSetSpec is the specification of a ReplicaSet.
-
setTemplate
public void setTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)
ReplicaSetSpec is the specification of a ReplicaSet.
-
edit
public ReplicaSetSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ReplicaSetSpecBuilder>
-
toBuilder
public ReplicaSetSpecBuilder toBuilder()
-
-