Class ReplicaSetSpec.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.ReplicaSetSpec.Builder
-
- Enclosing class:
- ReplicaSetSpec
public static class ReplicaSetSpec.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicaSetSpec
build()
ReplicaSetSpec.Builder
minReadySeconds(java.lang.Number 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.ReplicaSetSpec.Builder
replicas(java.lang.Number replicas)
Replicas is the number of desired replicas.ReplicaSetSpec.Builder
selector(@NonNull LabelSelector selector)
ReplicaSetSpec.Builder
template(PodTemplateSpec template)
java.lang.String
toString()
-
-
-
Method Detail
-
minReadySeconds
public ReplicaSetSpec.Builder minReadySeconds(java.lang.Number 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)- Returns:
this
.
-
replicas
public ReplicaSetSpec.Builder replicas(java.lang.Number 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- Returns:
this
.
-
selector
public ReplicaSetSpec.Builder selector(@NonNull @NonNull LabelSelector selector)
-
template
public ReplicaSetSpec.Builder template(PodTemplateSpec template)
-
build
public ReplicaSetSpec build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-