vladiceanu opened a new pull request #254:
URL: https://github.com/apache/solr-operator/pull/254


   This fixes #251 
   
   A user should be able to scale the SolrCloud CR using HPA:
   
   ```yaml
   # hpa reference
   ...
   spec:
     maxReplicas: 6
     minReplicas: 3
     scaleTargetRef:
       apiVersion: solr.apache.com/v1beta1
       kind: SolrCloud
       name: my-solr-cluster
     metrics:
      ....
   ```
   
   Field `spec.replicas` from the SolrCloud CR should be left unset (it's 
already optional) if HPA is used, just like for deployment replicas field and 
HPA. 
   
   The HPA has to be defined separately and it's not part of the Operator, 
thus, the user is responsible for choosing the metrics and the logic of HPA.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to