You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2021/12/08 19:52:23 UTC

[GitHub] [solr-operator] gthvidsten opened a new issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

gthvidsten opened a new issue #382:
URL: https://github.com/apache/solr-operator/issues/382


   **Problem**
   
   If you have a multi platform node cluster (linux + windows) then you need to specify a `nodeSelector` to force a deployment to run on a specific node. Usually like this:
   ```
   nodeSelector:
     kubernetes.io/os: linux
   ```
   
   If you don't have this setting in place then K8s will place them on a node as K8s seems fit. When this node turns out to be a Windows node the images needed for SolrCloud will not be able to be pulled, with a generic `ErrImagePull` in the events for the pods.
   
   Trying to set `nodeSelector` in the `values.yaml` doesn't work for the SolrCloud installation. There are no errors, it just seems to be ignored.
   
   **Solution**
   
   Make SolrCloud use `nodeSelector` settings if they are set, preferrably in `values.yaml`


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
gthvidsten commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-991717712


   Setting Zookeeper to linux as well helped greatly. Now all pods are starting.
   
   You should probably consider hvaing these values as default so that other users with mixed OS nodes don't run into the same problems.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] HoustonPutman commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-990068110


   Use it exactly like you would on a pod, or podTemplate in a Deployment. The operator basically just takes the things you provide to podOptions, and puts them into the pod template in the StatefulSet unaltered.
   
   So:
   ```yaml
   podOptions:
     nodeSelector:
       kubernetes.io/os: linux
   ```
   
   Also we try to keep the helm chart documentation pretty up-to-date, so searching through this page should help find any options: https://artifacthub.io/packages/helm/apache-solr/solr


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten edited a comment on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
gthvidsten edited a comment on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-990775921


   Thanks. Adding the `podOptions` mostly worked!
   
   Almost all the pods are now up and running, except one of the zookeeper replicas, which gave the following error:
   ```
   Failed to pull image "docker.io/pravega/zookeeper:0.2.12": rpc error: code =
     Unknown desc = image operating system "linux" cannot be used on this platform
   ```
   I can see that this pod is provisioned on our Windows node, even though the `podOptions` is present and it should be forced to our Linux node.
   Can you help figure out why this specific pod is provisioned on the wrong node?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
gthvidsten commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-990065557


   I only tried `nodeSelector`. I looked in the original `values.yaml` you linked me to in the other thread but couldn't find anything resembling `nodeSelector` to replace with, but looking again I can of course find the `podOptions.nodeSelector` you mention so I'll give that a try.
   
   How is it used? Do I just put a value of `linux` for this setting, or do I need the full `kubernetes.io/os: linux`?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] HoustonPutman commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-991086348


   ahhh so that pod options is for the Solr cluster.
   
   For the zookeeper cluster, use the following in your SolrCloud resource:
   ```yaml
   spec:
     zookeeperRef:
       provided:
         zookeeperPodPolicy:
           nodeSelector:
             kubernetes.io/os: linux
   ```
   
   For the helm chart, you can pass this through:
   ```yaml
   zk:
     provided:
       zookeeperPodPolicy:
         nodeSelector:
           kubernetes.io/os: linux
   ```
   
   Sorry for omitting this earlier, those two are the only you will have to do unless you are also installing a Solr Prometheus Exporter, but that will be specified in a different resource.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
gthvidsten commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-991717712


   Setting Zookeeper to linux as well helped greatly. Now all pods are starting.
   
   You should probably consider hvaing these values as default so that other users with mixed OS nodes don't run into the same problems.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] gthvidsten edited a comment on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
gthvidsten edited a comment on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-990775921


   Thanks. Adding the `podOptions` mostly worked!
   
   Almost all the pods are now up and running, except one of the zookeeper replicas (`example-solrcloud-zookeeper-1`), which gave the following error:
   ```
   Failed to pull image "docker.io/pravega/zookeeper:0.2.12": rpc error: code =
     Unknown desc = image operating system "linux" cannot be used on this platform
   ```
   I can see that this pod is provisioned on our Windows node, even though the `podOptions` is present and it should be forced to our Linux node.
   Can you help figure out why this specific pod is provisioned on the wrong node?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr-operator] HoustonPutman commented on issue #382: Can't specify nodeSelector for SolrCloud / ZK / Busybox

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #382:
URL: https://github.com/apache/solr-operator/issues/382#issuecomment-990061111


   Hello @gthvidsten , thanks for reporting this!
   
   Did you try using `podOptions.nodeSelector` or just `nodeSelector` in the `values.yaml`?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org