Class ReplicaSetSpec

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ReplicaSetSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ReplicaSetSpec is the specification of a ReplicaSet.
    • Constructor Detail

      • ReplicaSetSpec

        public ReplicaSetSpec​(java.lang.Number minReadySeconds,
                              java.lang.Number replicas,
                              LabelSelector selector,
                              PodTemplateSpec template)
      • ReplicaSetSpec

        public ReplicaSetSpec()
    • Method Detail

      • getMinReadySeconds

        public java.lang.Number 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)
      • getReplicas

        public java.lang.Number 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
      • setMinReadySeconds

        public void setMinReadySeconds​(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)
      • setReplicas

        public void setReplicas​(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
      • setSelector

        public void setSelector​(LabelSelector selector)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object