Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More configuration options #55

Closed
meskallito opened this issue Nov 20, 2019 · 9 comments
Closed

More configuration options #55

meskallito opened this issue Nov 20, 2019 · 9 comments

Comments

@meskallito
Copy link

Hi there,

We are considering using Bloomberg operator for our SOLR cluster but there are a few things we need to configure that the operator doesn't provide for us:

  • Support of configuration for security contexts on stateful sets
  • Custom annotations on services and stateful sets
  • Adding our data volumes to stateful sets
  • Setting policy name on collections
@HoustonPutman
Copy link
Contributor

Hey @meskallito thanks for the input. We can definitely look at adding these things, they seem reasonable to me at a first-glance.

We are no longer blocked on #38 , so if you are interested in creating a PR with one or more of these added, we will be happy to look over and review it! And hopefully eventually we get all of these features added.

@HoustonPutman
Copy link
Contributor

Spec.customSolrKubeOptions.podOptions and Spec.customSolrKubeOptions.statefulSetOptions have been added.

This allows for custom:

  • Security Context
  • Volumes
  • Annotations on statefulSets/pods

What we still need:

  • Service annotations
  • Setting policy name on collections.

@HoustonPutman
Copy link
Contributor

Service annotations have been added in Spec.customSolrKubeOptions.commonServiceOptions, Spec.customSolrKubeOptions.headlessServiceOptions and Spec.customSolrKubeOptions.nodeServiceOptions.

Last request is setting the policy name on a collection.

@HoustonPutman
Copy link
Contributor

Since the SolrCollection CRD has been removed, this issue can be closed. All features on the SolrCloud CRD have been added.

@pareekdevanshu
Copy link

pareekdevanshu commented Nov 3, 2022

@HoustonPutman I was looking for an option to set securityContext for solr-cloud containers but couldnt find any option in the SolrCloud CRD to do that. I only see option to set securityContext for sidecarContainers and initContainers.
Am I missing something?

@HoustonPutman
Copy link
Contributor

You can set the podSecurityContext through customSolrKubeOptions.podOptions.podSecurityContext

@pareekdevanshu
Copy link

@HoustonPutman Thanks for the reply, I wanted to drop all capabilities in security context which can be done using securityContext :

securityContext:
  capabilities:
    drop:
      - ALL
     

can you please tell me how can we achieve the same using customSolrKubeOptions.podOptions.podSecurityContext?
I couldnt find a way to mention the capabilities in podSecurityContext.

@HoustonPutman
Copy link
Contributor

Ahh it looks like you can only set capabilities on the container security context. If you make a separate issue we can try to get that added.

@pareekdevanshu
Copy link

thanks, created this issue #489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants