Class ReplicationControllerSpec

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

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

      • ReplicationControllerSpec

        public ReplicationControllerSpec​(java.lang.Number minReadySeconds,
                                         java.lang.Number replicas,
                                         java.util.Map<java.lang.String,​java.lang.String> selector,
                                         PodTemplateSpec template)
      • ReplicationControllerSpec

        public ReplicationControllerSpec()
    • 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
      • getSelector

        public java.util.Map<java.lang.String,​java.lang.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
      • 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​(java.util.Map<java.lang.String,​java.lang.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
      • 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